Struct som_parser_core::AndLeft
source · pub struct AndLeft<A, B, U> { /* private fields */ }
Expand description
Sequences two parsers, one after the other, but discards the output of the second one.
Trait Implementations§
source§impl<A, B, T, U, I> Parser<T, I> for AndLeft<A, B, U>
impl<A, B, T, U, I> Parser<T, I> for AndLeft<A, B, U>
source§fn and<U, P: Parser<U, I>>(self, parser: P) -> And<Self, P>
fn and<U, P: Parser<U, I>>(self, parser: P) -> And<Self, P>
Sequences two parsers, one after the other, collecting both results.
source§fn or<P: Parser<T, I>>(self, parser: P) -> Or<Self, P>
fn or<P: Parser<T, I>>(self, parser: P) -> Or<Self, P>
Tries to apply the first parser, if it fails, it tries to apply the second parser.
source§fn map<F: Fn(T) -> U, U>(self, func: F) -> Map<Self, F, T>
fn map<F: Fn(T) -> U, U>(self, func: F) -> Map<Self, F, T>
Maps a function over the output value of the parser.
Auto Trait Implementations§
impl<A, B, U> Freeze for AndLeft<A, B, U>
impl<A, B, U> RefUnwindSafe for AndLeft<A, B, U>
impl<A, B, U> Send for AndLeft<A, B, U>
impl<A, B, U> Sync for AndLeft<A, B, U>
impl<A, B, U> Unpin for AndLeft<A, B, U>
impl<A, B, U> UnwindSafe for AndLeft<A, B, U>
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