pub struct Not<A, I = ()> { /* private fields */ }Expand description
Pass if the subparser fail
Implementations§
Trait Implementations§
impl<A: Eq, I: Eq> Eq for Not<A, I>
Source§impl<I: TimeTravel, A> Parser<I> for Not<A, I>where
A: Parser<I>,
impl<I: TimeTravel, A> Parser<I> for Not<A, I>where
A: Parser<I>,
type Output = ()
Source§fn map<U, F>(self, f: F) -> Map<Self, I, F>
fn map<U, F>(self, f: F) -> Map<Self, I, F>
Map a
Parser<Output = T> to Parser<Output = U> by applying a function to a contained valueSource§fn many_min_max(self, min: usize, max: usize) -> Many<Self, I>where
Self: Sized,
fn many_min_max(self, min: usize, max: usize) -> Many<Self, I>where
Self: Sized,
{n,m}, >= n && <= mSource§fn and_then<U, F>(self, f: F) -> AndThen<Self, I, F>
fn and_then<U, F>(self, f: F) -> AndThen<Self, I, F>
Fail if the subparser fail, otherwise calls f with the new Parser and parse the Parser
Source§fn or_else<U, F>(self, f: F) -> OrElse<Self, I, F>
fn or_else<U, F>(self, f: F) -> OrElse<Self, I, F>
Pass if subparser pass, otherwise calls f and parse the result Parser
Source§fn or_trans<F>(self, no_retry: bool, f: F) -> OrTrans<Self, I, F>
fn or_trans<F>(self, no_retry: bool, f: F) -> OrTrans<Self, I, F>
Pass if subparser pass, otherwise calls f with error point Read more
impl<A, I> StructuralPartialEq for Not<A, I>
Auto Trait Implementations§
impl<A, I> Freeze for Not<A, I>where
A: Freeze,
impl<A, I> RefUnwindSafe for Not<A, I>where
A: RefUnwindSafe,
I: RefUnwindSafe,
impl<A, I> Send for Not<A, I>
impl<A, I> Sync for Not<A, I>
impl<A, I> Unpin for Not<A, I>
impl<A, I> UnsafeUnpin for Not<A, I>where
A: UnsafeUnpin,
impl<A, I> UnwindSafe for Not<A, I>where
A: UnwindSafe,
I: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoUnsafeCell for T
impl<T> IntoUnsafeCell for T
unsafe fn unsafe_cell(self) -> UnsafeCell<Self>
Source§impl<T> TupleGetMutV2 for T
impl<T> TupleGetMutV2 for T
Source§fn get_mut<const N: usize>(&mut self) -> &mut <T as TupleGetV2>::Output<N>where
T: TupleGetMutV2N<N>,
fn get_mut<const N: usize>(&mut self) -> &mut <T as TupleGetV2>::Output<N>where
T: TupleGetMutV2N<N>,
Get the nth item of the tuple
Source§impl<T> TupleGetV2 for T
impl<T> TupleGetV2 for T
type Output<const N: usize> = <T as TupleGetV2N<N>>::Output where T: TupleGetV2N<N>
Source§fn get<const N: usize>(&self) -> &<T as TupleGetV2>::Output<N>where
T: TupleGetV2N<N>,
fn get<const N: usize>(&self) -> &<T as TupleGetV2>::Output<N>where
T: TupleGetV2N<N>,
Get the nth item of the tuple
Source§impl<T> TupleSwapV2 for T
impl<T> TupleSwapV2 for T
Source§impl<Tuple, Target, Mapper> TupleUniformMap<Target, Mapper> for Tuplewhere
Mapper: TupleUniformMapper<Tuple, Target>,
impl<Tuple, Target, Mapper> TupleUniformMap<Target, Mapper> for Tuplewhere
Mapper: TupleUniformMapper<Tuple, Target>,
Source§fn uniform_map(
self,
mapper: Mapper,
) -> <Mapper as TupleUniformMapper<Tuple, Target>>::Output
fn uniform_map( self, mapper: Mapper, ) -> <Mapper as TupleUniformMapper<Tuple, Target>>::Output
Map heterogeneous tuples to homogeneous tuples.
Source§impl<Tuple, Target, Arg, Mapper> TupleUniformMapBy<Target, Arg, Mapper> for Tuplewhere
Mapper: TupleUniformMapperBy<Tuple, Target, Arg>,
impl<Tuple, Target, Arg, Mapper> TupleUniformMapBy<Target, Arg, Mapper> for Tuplewhere
Mapper: TupleUniformMapperBy<Tuple, Target, Arg>,
Source§fn uniform_map_by(
self,
arg: Arg,
mapper: Mapper,
) -> <Mapper as TupleUniformMapperBy<Tuple, Target, Arg>>::Output
fn uniform_map_by( self, arg: Arg, mapper: Mapper, ) -> <Mapper as TupleUniformMapperBy<Tuple, Target, Arg>>::Output
Map heterogeneous tuples to homogeneous tuples by arg