Struct hime_redist::tokens::Token [] [src]

pub struct Token<'a> {
    pub index: usize,
    // some fields omitted
}

Represents a token as an output element of a lexer

Fields

The index of this token in the text

Trait Implementations

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

Implementation of Clone for Token

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Copy for Token<'a>
[src]

Implementation of Copy for Token

impl<'a> SemanticElementTrait for Token<'a>
[src]

[src]

Gets the position in the input text of this element

[src]

Gets the span in the input text of this element

[src]

Gets the context of this element in the input

[src]

Gets the grammar symbol associated to this element

[src]

Gets the value of this element, if any

Auto Trait Implementations

impl<'a> Send for Token<'a>

impl<'a> Sync for Token<'a>