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