[][src]Enum luaparse::token::TokenKind

pub enum TokenKind {
    Symbol(Symbol),
    Number,
    String,
    Comment,
    Whitespace,
    Ident,
    Eof,
}

A token kind.

Variants

Symbol(Symbol)

A symbol.

Number

A number literal.

String

A string literal.

Comment

A comment.

Whitespace

A whitespace sequence.

Ident

An identifier.

Eof

The end of the file.

Implementations

impl TokenKind[src]

pub fn is_trivia(self) -> bool[src]

Returns true for insignificant tokens: whitespace and comments.

Trait Implementations

impl Clone for TokenKind[src]

impl Copy for TokenKind[src]

impl Debug for TokenKind[src]

impl Display for TokenKind[src]

impl Eq for TokenKind[src]

impl From<Symbol> for TokenKind[src]

impl Hash for TokenKind[src]

impl PartialEq<TokenKind> for TokenKind[src]

impl StructuralEq for TokenKind[src]

impl StructuralPartialEq for TokenKind[src]

Auto Trait Implementations

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<T> From<T> for T[src]

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

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.