[][src]Enum lexer::TokenKind

pub enum TokenKind<'f> {
    Keyword(Keyword),
    Operator(Operator),
    Identifier(Symbol<'f>),
    IntegerLiteral(IntLit<'f>),
    Comment(&'f str),
    Whitespace,
}

Keywords are single-ticked, operators back-ticked

Variants

Trait Implementations

impl<'f> Ord for TokenKind<'f>
[src]

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<'f> PartialEq<TokenKind<'f>> for TokenKind<'f>
[src]

impl<'f> Clone for TokenKind<'f>
[src]

Performs copy-assignment from source. Read more

impl<'f> Copy for TokenKind<'f>
[src]

impl<'f> Eq for TokenKind<'f>
[src]

impl<'f> PartialOrd<TokenKind<'f>> for TokenKind<'f>
[src]

impl<'f> Display for TokenKind<'f>
[src]

impl<'f> Debug for TokenKind<'f>
[src]

impl<'f> Hash for TokenKind<'f>
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<'f> Send for TokenKind<'f>

impl<'f> Sync for TokenKind<'f>

Blanket Implementations

impl<T> From for T
[src]

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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