Struct Punct
pub struct Punct<Span> { pub ch: u8, pub joint: bool, pub span: Span }
Fields
ch: u8joint: boolspan: Span
Trait Implementations
impl<'a, S, Span: for<'s> Decode<'a, 's, S>> Decode<'a, '_, S> for Punct<Span>
fn decode(r: &mut &'a [u8], s: &mut S) -> Self
impl<S, Span: Encode<S>> Encode<S> for Punct<Span>
fn encode(self, w: &mut Buffer, s: &mut S)
impl<Span: Clone> Clone for Punct<Span>
fn clone(&self) -> Punct<Span>
impl<Span: Mark> Mark for Punct<Span>
type Unmarked = Punct<<Span as Mark>::Unmarked>;fn mark(unmarked: Self::Unmarked) -> Selffn unmark(self) -> Self::Unmarked
Auto Trait Implementations
impl<Span> Freeze for Punct<Span>
where
Span: Freeze,
impl<Span> RefUnwindSafe for Punct<Span>
where
Span: RefUnwindSafe,
impl<Span> Send for Punct<Span>
where
Span: Send,
impl<Span> Sync for Punct<Span>
where
Span: Sync,
impl<Span> Unpin for Punct<Span>
where
Span: Unpin,
impl<Span> UnsafeUnpin for Punct<Span>
where
Span: UnsafeUnpin,
impl<Span> UnwindSafe for Punct<Span>
where
Span: UnwindSafe,
Blanket Implementations
impl<T> Any for Punct<Span>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Punct<Span>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Punct<Span>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Punct<Span>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Punct<Span>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for Punct<Span>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Punct<Span>
impl<T> ToOwned for Punct<Span>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Punct<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 Punct<Span>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Punct<Span>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>