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
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<R: Clone, I: Clone + Input> Clone for Token<R, I>
[src]
fn clone(&self) -> Token<R, I>
[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<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: Hash, I: Hash + Input> Hash for Token<R, I>
[src]
fn hash<__HRI: Hasher>(&self, __arg_0: &mut __HRI)
[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