Enum combine::primitives::FastResult [−][src]
pub enum FastResult<T, E> {
ConsumedOk(T),
EmptyOk(T),
ConsumedErr(E),
EmptyErr(E),
}Variants
ConsumedOk(T)EmptyOk(T)ConsumedErr(E)EmptyErr(E)
Methods
impl<T, E> FastResult<T, E>[src]
impl<T, E> FastResult<T, E>pub fn as_ref(&self) -> FastResult<&T, &E>[src]
pub fn as_ref(&self) -> FastResult<&T, &E>pub fn and_then<F, T2>(self, f: F) -> F::Output where
F: FnOnce(T) -> FastResult<T2, E>, [src]
pub fn and_then<F, T2>(self, f: F) -> F::Output where
F: FnOnce(T) -> FastResult<T2, E>, Trait Implementations
impl<T: Clone, E: Clone> Clone for FastResult<T, E>[src]
impl<T: Clone, E: Clone> Clone for FastResult<T, E>fn clone(&self) -> FastResult<T, E>[src]
fn clone(&self) -> FastResult<T, E>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<T: PartialEq, E: PartialEq> PartialEq for FastResult<T, E>[src]
impl<T: PartialEq, E: PartialEq> PartialEq for FastResult<T, E>fn eq(&self, other: &FastResult<T, E>) -> bool[src]
fn eq(&self, other: &FastResult<T, E>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &FastResult<T, E>) -> bool[src]
fn ne(&self, other: &FastResult<T, E>) -> boolThis method tests for !=.
impl<T: Debug, E: Debug> Debug for FastResult<T, E>[src]
impl<T: Debug, E: Debug> Debug for FastResult<T, E>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: Copy, E: Copy> Copy for FastResult<T, E>[src]
impl<T: Copy, E: Copy> Copy for FastResult<T, E>impl<T, E> Into<Result<Consumed<T>, Consumed<E>>> for FastResult<T, E>[src]
impl<T, E> Into<Result<Consumed<T>, Consumed<E>>> for FastResult<T, E>Auto Trait Implementations
impl<T, E> Send for FastResult<T, E> where
E: Send,
T: Send,
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> Sync for FastResult<T, E> where
E: Sync,
T: Sync,