Struct Fail
pub struct Fail<O, E> { /* private fields */ }
Parser implementation for [fail]
Trait Implementations
impl<I, O, E> Parser<I> for Fail<O, E>
where
E: ParseError<I>,
type Output = O;type Error = E;fn process<OM: OutputMode>(&mut self, input: I) -> PResult<OM, I, Self::Output, Self::Error>
Auto Trait Implementations
impl<O, E> Freeze for Fail<O, E>
where
PhantomData<O>: Freeze,
PhantomData<E>: Freeze,
impl<O, E> RefUnwindSafe for Fail<O, E>
where
PhantomData<O>: RefUnwindSafe,
PhantomData<E>: RefUnwindSafe,
impl<O, E> Send for Fail<O, E>
where
PhantomData<O>: Send,
PhantomData<E>: Send,
impl<O, E> Sync for Fail<O, E>
where
PhantomData<O>: Sync,
PhantomData<E>: Sync,
impl<O, E> Unpin for Fail<O, E>
where
PhantomData<O>: Unpin,
PhantomData<E>: Unpin,
impl<O, E> UnsafeUnpin for Fail<O, E>
where
PhantomData<O>: UnsafeUnpin,
PhantomData<E>: UnsafeUnpin,
impl<O, E> UnwindSafe for Fail<O, E>
where
PhantomData<O>: UnwindSafe,
PhantomData<E>: UnwindSafe,
Blanket Implementations
impl<T> Any for Fail<O, E>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Fail<O, E>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Fail<O, E>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Fail<O, E>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for Fail<O, E>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Fail<O, E>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Fail<O, E>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>