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

The starting bit of the Token

Fields of Start

The ending bit of the Token

Fields of End

Trait Implementations

impl<'i, R: Clone> Clone for Token<'i, R>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'i, R: Debug> Debug for Token<'i, R>
[src]

[src]

Formats the value using the given formatter.

impl<'i, R: Eq> Eq for Token<'i, R>
[src]

impl<'i, R: Hash> Hash for Token<'i, R>
[src]

[src]

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

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]

[src]

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

[src]

This method tests for !=.