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

The starting bit of the Token

Fields of Start

The ending bit of the Token

Fields of End

Trait Implementations

impl<R: Debug, I: Debug + Input> Debug for Token<R, I>
[src]

Formats the value using the given formatter.

impl<R: Eq, I: Eq + Input> Eq for Token<R, I>
[src]

impl<R: Clone, I: Input> Clone for Token<R, I>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<R: PartialEq, I: Input> PartialEq for Token<R, I>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<R: Hash, I: Input> Hash for Token<R, I>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more