pub struct DiscardRight<'input, Left: Parse<'input>, Right: Parse<'input, Input = Left::Input>>(/* private fields */);Expand description
Perform two actions in order and discard the result of the second, returning the result of the first.
Implementations§
Trait Implementations§
Source§impl<'input, Left: Debug + Parse<'input>, Right: Debug + Parse<'input, Input = Left::Input>> Debug for DiscardRight<'input, Left, Right>
impl<'input, Left: Debug + Parse<'input>, Right: Debug + Parse<'input, Input = Left::Input>> Debug for DiscardRight<'input, Left, Right>
Source§impl<'input, Left: Parse<'input>, Right: Parse<'input, Input = Left::Input>> Parse<'input> for DiscardRight<'input, Left, Right>
impl<'input, Left: Parse<'input>, Right: Parse<'input, Input = Left::Input>> Parse<'input> for DiscardRight<'input, Left, Right>
Auto Trait Implementations§
impl<'input, Left, Right> Freeze for DiscardRight<'input, Left, Right>
impl<'input, Left, Right> RefUnwindSafe for DiscardRight<'input, Left, Right>where
Left: RefUnwindSafe,
Right: RefUnwindSafe,
impl<'input, Left, Right> Send for DiscardRight<'input, Left, Right>
impl<'input, Left, Right> Sync for DiscardRight<'input, Left, Right>
impl<'input, Left, Right> Unpin for DiscardRight<'input, Left, Right>
impl<'input, Left, Right> UnwindSafe for DiscardRight<'input, Left, Right>where
Left: UnwindSafe,
Right: 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