[][src]Enum mini_haskell::utils::control::Result3

pub enum Result3<T, E, M> {
    Success(T),
    FailFast(E),
    RetryLater(M),
}

Result type for parsing.

Variants

Success(T)

succeed with a result

FailFast(E)

fail with an error, no recovery

RetryLater(M)

fail without error, allowing future recovery

Trait Implementations

impl<T: Clone, E: Clone, M: Clone> Clone for Result3<T, E, M>[src]

impl<T: Copy, E: Copy, M: Copy> Copy for Result3<T, E, M>[src]

impl<T: Debug, E: Debug, M: Debug> Debug for Result3<T, E, M>[src]

impl<T, E, M> Either for Result3<T, E, M>[src]

type Left = M

The type to propagate in a Left.

type Right = Result3<T, E, Void>

The type to continue with in a Right.

impl<T: Eq, E: Eq, M: Eq> Eq for Result3<T, E, M>[src]

impl<T, E> From<T> for Result3<T, E, Void>[src]

impl<T, E, M> Maybe for Result3<T, E, M>[src]

type Just = T

The success type in a Just.

impl<T: PartialEq, E: PartialEq, M: PartialEq> PartialEq<Result3<T, E, M>> for Result3<T, E, M>[src]

impl<T, E, M> StructuralEq for Result3<T, E, M>[src]

impl<T, E, M> StructuralPartialEq for Result3<T, E, M>[src]

Auto Trait Implementations

impl<T, E, M> RefUnwindSafe for Result3<T, E, M> where
    E: RefUnwindSafe,
    M: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, E, M> Send for Result3<T, E, M> where
    E: Send,
    M: Send,
    T: Send

impl<T, E, M> Sync for Result3<T, E, M> where
    E: Sync,
    M: Sync,
    T: Sync

impl<T, E, M> Unpin for Result3<T, E, M> where
    E: Unpin,
    M: Unpin,
    T: Unpin

impl<T, E, M> UnwindSafe for Result3<T, E, M> where
    E: UnwindSafe,
    M: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.