pub struct PrattParserMap<'pratt, 'a, 'i, R, F, T>{ /* private fields */ }
Expand description
Product of calling map_primary
on PrattParser
, defines how expressions should
be mapped.
Implementations§
Source§impl<'pratt, 'a, 'i, R, F, T> PrattParserMap<'pratt, 'a, 'i, R, F, T>
impl<'pratt, 'a, 'i, R, F, T> PrattParserMap<'pratt, 'a, 'i, R, F, T>
Sourcepub fn map_prefix<X>(self, prefix: X) -> Self
pub fn map_prefix<X>(self, prefix: X) -> Self
Maps prefix operators with closure prefix
.
Sourcepub fn map_postfix<X>(self, postfix: X) -> Self
pub fn map_postfix<X>(self, postfix: X) -> Self
Maps postfix operators with closure postfix
.
Sourcepub fn parse<P: Iterator<Item = Pair<'i, R>>>(&mut self, pairs: P) -> T
pub fn parse<P: Iterator<Item = Pair<'i, R>>>(&mut self, pairs: P) -> T
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§
impl<'pratt, 'a, 'i, R, F, T> Freeze for PrattParserMap<'pratt, 'a, 'i, R, F, T>where
F: Freeze,
impl<'pratt, 'a, 'i, R, F, T> !RefUnwindSafe for PrattParserMap<'pratt, 'a, 'i, R, F, T>
impl<'pratt, 'a, 'i, R, F, T> !Send for PrattParserMap<'pratt, 'a, 'i, R, F, T>
impl<'pratt, 'a, 'i, R, F, T> !Sync for PrattParserMap<'pratt, 'a, 'i, R, F, T>
impl<'pratt, 'a, 'i, R, F, T> Unpin for PrattParserMap<'pratt, 'a, 'i, R, F, T>
impl<'pratt, 'a, 'i, R, F, T> !UnwindSafe for PrattParserMap<'pratt, 'a, 'i, R, F, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more