pub struct TakeNot<P> {
pub parser: P,
}
Fields§
§parser: P
Trait Implementations§
Source§impl<'a, I, O, E: ParserError, ParType, P, Item> Parser<'a, I, Item, E, TakeNotParser<ParType, O>> for TakeNot<P>
impl<'a, I, O, E: ParserError, ParType, P, Item> Parser<'a, I, Item, E, TakeNotParser<ParType, O>> for TakeNot<P>
Source§fn fab(&self, input: &mut &'a I) -> Result<Item, E>
fn fab(&self, input: &mut &'a I) -> Result<Item, 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<P> Freeze for TakeNot<P>where
P: Freeze,
impl<P> RefUnwindSafe for TakeNot<P>where
P: RefUnwindSafe,
impl<P> Send for TakeNot<P>where
P: Send,
impl<P> Sync for TakeNot<P>where
P: Sync,
impl<P> Unpin for TakeNot<P>where
P: Unpin,
impl<P> UnwindSafe for TakeNot<P>where
P: UnwindSafe,
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