Enum pest::Token
[−]
[src]
pub enum Token<R, I: Input> { Start { rule: R, pos: Position<I>, }, End { rule: R, pos: Position<I>, }, }
An enum representing tokens generated by a Parser.
Variants
StartThe starting bit of the Token
Fields of Start
rule: R | |
pos: Position<I> |
EndThe ending bit of the Token
Fields of End
rule: R | |
pos: Position<I> |
Trait Implementations
impl<R: Debug, I: Debug + Input> Debug for Token<R, I>[src]
impl<R: Eq, I: Eq + Input> Eq for Token<R, I>[src]
impl<R: Clone, I: Input> Clone for Token<R, I>[src]
fn clone(&self) -> Token<R, I>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<R: PartialEq, I: Input> PartialEq for Token<R, I>[src]
fn eq(&self, other: &Token<R, I>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.