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>),
    String(String),
    InterfaceKeyword,
    TypeKeyword,
    EnumKeyword,
    TupleKeyword,
    ServiceKeyword,
    UseKeyword,
    AsKeyword,
    AnyKeyword,
    FloatKeyword,
    DoubleKeyword,
    Signed32,
    Signed64,
    Unsigned32,
    Unsigned64,
    BooleanKeyword,
    StringKeyword,
    DateTimeKeyword,
    BytesKeyword,
    StreamKeyword,
}

Variants

Methods

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

[src]

Get the keywords-safe variant of the given keyword.

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 !=.

Auto Trait Implementations

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

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