Struct DelimSpan
pub struct DelimSpan<Span> { pub open: Span, pub close: Span, pub entire: Span }
Fields
open: Spanclose: Spanentire: Span
Implementations
impl<Span: Copy> DelimSpan<Span>
fn from_single(span: Span) -> Self
Trait Implementations
impl<'a, S, Span: for<'s> Decode<'a, 's, S>> Decode<'a, '_, S> for DelimSpan<Span>
fn decode(r: &mut &'a [u8], s: &mut S) -> Self
impl<S, Span: Encode<S>> Encode<S> for DelimSpan<Span>
fn encode(self, w: &mut Buffer, s: &mut S)
impl<Span: Clone> Clone for DelimSpan<Span>
fn clone(&self) -> DelimSpan<Span>
impl<Span: Copy> Copy for DelimSpan<Span>
impl<Span: Mark> Mark for DelimSpan<Span>
type Unmarked = DelimSpan<<Span as Mark>::Unmarked>;fn mark(unmarked: Self::Unmarked) -> Selffn unmark(self) -> Self::Unmarked
Auto Trait Implementations
impl<Span> Freeze for DelimSpan<Span>
where
Span: Freeze + Freeze + Freeze,
impl<Span> RefUnwindSafe for DelimSpan<Span>
where
Span: RefUnwindSafe + RefUnwindSafe + RefUnwindSafe,
impl<Span> Send for DelimSpan<Span>
where
Span: Send + Send + Send,
impl<Span> Sync for DelimSpan<Span>
where
Span: Sync + Sync + Sync,
impl<Span> Unpin for DelimSpan<Span>
where
Span: Unpin + Unpin + Unpin,
impl<Span> UnsafeUnpin for DelimSpan<Span>
where
Span: UnsafeUnpin + UnsafeUnpin + UnsafeUnpin,
impl<Span> UnwindSafe for DelimSpan<Span>
where
Span: UnwindSafe + UnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for DelimSpan<Span>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for DelimSpan<Span>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for DelimSpan<Span>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for DelimSpan<Span>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for DelimSpan<Span>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for DelimSpan<Span>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for DelimSpan<Span>
impl<T> ToOwned for DelimSpan<Span>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for DelimSpan<Span>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for DelimSpan<Span>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for DelimSpan<Span>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>