pub struct Ignored<F, I>(/* private fields */);Expand description
This type is used to make the syntactic sugar work. It’s observed if you put a minus in front
of a Parser (see -).
If this is prepended (using >> to a parser, it’s the
equivalent to calling Parser::before.
If this is appended (using >> to a parser,
it’s the equivalent to calling Parser::followed_by.
If this is appended (using >> to another Ignored, a new
Ignored is returned.
Trait Implementations§
Auto Trait Implementations§
impl<F, I> Freeze for Ignored<F, I>where
F: Freeze,
impl<F, I> RefUnwindSafe for Ignored<F, I>where
F: RefUnwindSafe,
impl<F, I> Send for Ignored<F, I>where
F: Send,
impl<F, I> Sync for Ignored<F, I>where
F: Sync,
impl<F, I> Unpin for Ignored<F, I>where
F: Unpin,
impl<F, I> UnwindSafe for Ignored<F, I>where
F: 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