Enum pest::Token [−][src]
pub enum Token<'i, R> { Start { rule: R, pos: Position<'i>, }, End { rule: R, pos: Position<'i>, }, }
A token generated by a Parser
.
Variants
Start
The starting Position
of a matched Rule
Fields of Start
rule: R | |
pos: Position<'i> |
End
The ending Position
of a matched Rule
Fields of End
rule: R | |
pos: Position<'i> |
Trait Implementations
impl<'i, R: Clone> Clone for Token<'i, R>
[src]
impl<'i, R: Clone> Clone for Token<'i, R>
fn clone(&self) -> Token<'i, R>
[src]
fn clone(&self) -> Token<'i, R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'i, R: Debug> Debug for Token<'i, R>
[src]
impl<'i, R: Debug> Debug for Token<'i, R>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'i, R: Eq> Eq for Token<'i, R>
[src]
impl<'i, R: Eq> Eq for Token<'i, R>
impl<'i, R: Hash> Hash for Token<'i, R>
[src]
impl<'i, R: Hash> Hash for Token<'i, R>
fn hash<__HR: Hasher>(&self, state: &mut __HR)
[src]
fn hash<__HR: Hasher>(&self, state: &mut __HR)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl<'i, R: PartialEq> PartialEq for Token<'i, R>
[src]
impl<'i, R: PartialEq> PartialEq for Token<'i, R>