logo
pub struct PrattParserMap<'pratt, 'i, R, F, T> where
    R: RuleType,
    F: FnMut(Pair<'i, R>) -> T, 
{ /* private fields */ }
Expand description

Product of calling map_primary on PrattParser, defines how expressions should be mapped.

Implementations

Maps prefix operators with closure prefix.

Maps postfix operators with closure postfix.

Maps infix operators with a closure infix.

The last method to call on the provided pairs to execute the Pratt parser (previously defined using map_primary, map_prefix, map_postfix, and map_infix methods).

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.