pub struct SeqAlt4<T1, T2, T3, T4> { /* private fields */ }
Trait Implementations§
Source§impl<'a, I: ?Sized + Sequence, O1, O2, O3, O4, E: ParserError, P1, T1, P2, T2, P3, T3, P4, T4> Parser<'a, I, (O1, O2, O3, O4), E, SeqAlt4<T1, T2, T3, T4>> for Permutation<(P1, P2, P3, P4)>
impl<'a, I: ?Sized + Sequence, O1, O2, O3, O4, E: ParserError, P1, T1, P2, T2, P3, T3, P4, T4> Parser<'a, I, (O1, O2, O3, O4), E, SeqAlt4<T1, T2, T3, T4>> for Permutation<(P1, P2, P3, P4)>
Source§fn fab(&self, input: &mut &'a I) -> Result<(O1, O2, O3, O4), E>
fn fab(&self, input: &mut &'a I) -> Result<(O1, O2, O3, O4), E>
Parses the input. This method advances the input reference to the remaining
unparsed input. The method is named “fab” instead of “parse” to avoid conflicts
with the “parse” method of &str.
Source§fn fab_value<V: Clone>(self, value: V) -> Value<Self, V, I, O, E>where
Self: Sized,
fn fab_value<V: Clone>(self, value: V) -> Value<Self, V, I, O, E>where
Self: Sized,
Returns a parser that replaces the output of the underlying parser with V.
Source§fn fab_map<F>(self, func: F) -> ParserMap<Self, I, O, E, F>where
Self: Sized,
fn fab_map<F>(self, func: F) -> ParserMap<Self, I, O, E, F>where
Self: Sized,
This creates a Map parser that applies the function to the
output of the underlying parser.
Source§fn fab_try_map<F>(self, func: F) -> ParserTryMap<Self, I, O, E, F>where
Self: Sized,
fn fab_try_map<F>(self, func: F) -> ParserTryMap<Self, I, O, E, F>where
Self: Sized,
This parser first maps the input, and if the result is Option::Some or Result::Ok,
it unwraps the input. Othewise, the parser fails.
Auto Trait Implementations§
impl<T1, T2, T3, T4> Freeze for SeqAlt4<T1, T2, T3, T4>
impl<T1, T2, T3, T4> RefUnwindSafe for SeqAlt4<T1, T2, T3, T4>
impl<T1, T2, T3, T4> Send for SeqAlt4<T1, T2, T3, T4>
impl<T1, T2, T3, T4> Sync for SeqAlt4<T1, T2, T3, T4>
impl<T1, T2, T3, T4> Unpin for SeqAlt4<T1, T2, T3, T4>
impl<T1, T2, T3, T4> UnwindSafe for SeqAlt4<T1, T2, T3, T4>
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