pub struct Fail<F>(pub F);
Tuple Fields§
§0: F
Trait Implementations§
Source§impl<F, Input, Error> Parser<Input> for Fail<F>where
F: FnMut() -> Error,
impl<F, Input, Error> Parser<Input> for Fail<F>where
F: FnMut() -> Error,
type Output = ()
type Error = Error
fn parse( &mut self, _input: Input, from: usize, ) -> Result<Self::Output, Self::Error>
fn p(self) -> P<Self>where
Self: Sized,
fn by_ref(&mut self) -> P<ByRef<'_, Self>>where
Self: Sized,
fn and<B>(self, b: B) -> P<And<Self, B>>
fn and_skip<B>(self, b: B) -> P<AndSkip<Self, B>>
fn skip_and<B>(self, b: B) -> P<SkipAnd<Self, B>>
fn or<B>(self, b: B) -> P<Or<Self, B>>
fn map<F, Output>(self, f: F) -> P<Map<Self, F>>
fn map_err<F, Error>(self, f: F) -> P<MapErr<Self, F>>
fn and_then<F, Output>(self, f: F) -> P<AndThen<Self, F>>
fn optional(self) -> P<Optional<Self>>where
Self: Sized,
fn bind<B, F>(self, f: F) -> P<Bind<Self, F>>
fn repeat<R>(self, range: R) -> P<Repeat<Self, R>>
impl<F: Copy> Copy for Fail<F>
impl<F> StructuralPartialEq for Fail<F>
Auto Trait Implementations§
impl<F> Freeze for Fail<F>where
F: Freeze,
impl<F> RefUnwindSafe for Fail<F>where
F: RefUnwindSafe,
impl<F> Send for Fail<F>where
F: Send,
impl<F> Sync for Fail<F>where
F: Sync,
impl<F> Unpin for Fail<F>where
F: Unpin,
impl<F> UnwindSafe for Fail<F>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