Enum combine::error::FastResult[][src]

pub enum FastResult<T, E> {
    ConsumedOk(T),
    EmptyOk(T),
    ConsumedErr(E),
    EmptyErr(Tracked<E>),
}

Variants

ConsumedOk(T)
EmptyOk(T)
ConsumedErr(E)
EmptyErr(Tracked<E>)

Implementations

impl<T, E> FastResult<T, E>[src]

pub fn is_ok(&self) -> bool[src]

pub fn as_ref(&self) -> FastResult<&T, &E>[src]

pub fn and_then<F, T2>(self, f: F) -> F::Output where
    F: FnOnce(T) -> FastResult<T2, E>, 
[src]

pub fn map_err<F, E2>(self, f: F) -> FastResult<T, F::Output> where
    F: FnOnce(E) -> E2, 
[src]

impl<T, E> FastResult<T, E>[src]

pub fn map<F, T2>(self, f: F) -> FastResult<F::Output, E> where
    F: FnOnce(T) -> T2, 
[src]

Trait Implementations

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

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

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

impl<O, E> From<Result<(O, Consumed<()>), Consumed<Tracked<E>>>> for FastResult<O, E>[src]

impl<O, E> Into<Result<(O, Consumed<()>), Consumed<Tracked<E>>>> for FastResult<O, E>[src]

impl<T, E> Into<Result<Consumed<T>, Consumed<Tracked<E>>>> for FastResult<T, E>[src]

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

impl<T, E> StructuralPartialEq for FastResult<T, E>[src]

Auto Trait Implementations

impl<T, E> RefUnwindSafe for FastResult<T, E> where
    E: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, E> Send for FastResult<T, E> where
    E: Send,
    T: Send

impl<T, E> Sync for FastResult<T, E> where
    E: Sync,
    T: Sync

impl<T, E> Unpin for FastResult<T, E> where
    E: Unpin,
    T: Unpin

impl<T, E> UnwindSafe for FastResult<T, E> where
    E: 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<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.