Enum pest::Token
[−]
[src]
pub enum Token<'i, R> { Start { rule: R, pos: Position<'i>, }, End { rule: R, pos: Position<'i>, }, }
An enum
representing tokens generated by a Parser
.
Variants
Start
The starting bit of the Token
Fields of Start
rule: R | |
pos: Position<'i> |
End
The ending bit of the Token
Fields of End
rule: R | |
pos: Position<'i> |
Trait Implementations
impl<'i, R: Clone> Clone for Token<'i, R>
[src]
fn clone(&self) -> Token<'i, R>
[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<'i, R: Debug> Debug for Token<'i, R>
[src]
impl<'i, R: Eq> Eq for Token<'i, R>
[src]
impl<'i, R: Hash> Hash for Token<'i, R>
[src]
fn hash<__HR: Hasher>(&self, __arg_0: &mut __HR)
[src]
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]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more