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
index: usize
The index of this token in the text
Trait Implementations
impl<'a> Clone for Token<'a>
[src]
Implementation of Clone
for Token
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
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]
fn get_position(&self) -> Option<TextPosition>
[src]
Gets the position in the input text of this element
fn get_span(&self) -> Option<TextSpan>
[src]
Gets the span in the input text of this element
fn get_context(&self) -> Option<TextContext>
[src]
Gets the context of this element in the input
fn get_symbol(&self) -> Symbol
[src]
Gets the grammar symbol associated to this element
fn get_value(&self) -> Option<String>
[src]
Gets the value of this element, if any