Enum reproto_lexer::Token [] [src]

pub enum Token<'input> {
    Identifier(Cow<'input, str>),
    TypeIdentifier(Cow<'input, str>),
    PackageDocComment(Vec<Cow<'input, str>>),
    DocComment(Vec<Cow<'input, str>>),
    Number(RpNumber),
    LeftCurly,
    RightCurly,
    LeftBracket,
    RightBracket,
    LeftParen,
    RightParen,
    SemiColon,
    Colon,
    Equal,
    Comma,
    Dot,
    Scope,
    QuestionMark,
    Hash,
    Bang,
    RightArrow,
    CodeOpen,
    CodeClose,
    CodeContent(Cow<'input, str>),
    QuotedString(String),
    Any,
    As,
    Boolean,
    Bytes,
    Datetime,
    Enum,
    Float,
    Double,
    I32,
    I64,
    Interface,
    Service,
    Stream,
    String,
    Tuple,
    Type,
    U32,
    U64,
    Use,
}

Variants

Methods

impl<'input> Token<'input>
[src]

[src]

Get the keywords-safe variant of the given keyword.

[src]

Trait Implementations

impl<'input> Clone for Token<'input>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'input> Debug for Token<'input>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'input> PartialEq for Token<'input>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'input> Eq for Token<'input>
[src]

Auto Trait Implementations

impl<'input> Send for Token<'input>

impl<'input> Sync for Token<'input>