[][src]Struct rustc_ap_rustc_ast::token::Lit

pub struct Lit {
    pub kind: LitKind,
    pub symbol: Symbol,
    pub suffix: Option<Symbol>,
}

A literal token.

Fields

kind: LitKindsymbol: Symbolsuffix: Option<Symbol>

Implementations

impl Lit[src]

pub fn new(kind: LitKind, symbol: Symbol, suffix: Option<Symbol>) -> Lit[src]

Trait Implementations

impl Clone for Lit[src]

impl Copy for Lit[src]

impl Debug for Lit[src]

impl<__D: Decoder> Decodable<__D> for Lit[src]

impl Display for Lit[src]

impl<__E: Encoder> Encodable<__E> for Lit[src]

impl<__CTX> HashStable<__CTX> for Lit where
    __CTX: HashStableContext
[src]

impl PartialEq<Lit> for Lit[src]

impl StructuralPartialEq for Lit[src]

Auto Trait Implementations

impl RefUnwindSafe for Lit

impl Send for Lit

impl Sync for Lit

impl Unpin for Lit

impl UnwindSafe for Lit

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,