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>)
Methods
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]
F: FnOnce(T) -> FastResult<T2, E>,
pub fn map_err<F, E2>(self, f: F) -> FastResult<T, F::Output> where
F: FnOnce(E) -> E2, [src]
F: FnOnce(E) -> E2,
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]
F: FnOnce(T) -> T2,
Trait Implementations
impl<T: Clone, E: Clone> Clone for FastResult<T, E>[src]
fn clone(&self) -> FastResult<T, E>[src]
Returns a copy of the value. Read more
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]
fn eq(&self, __arg_0: &FastResult<T, E>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &FastResult<T, E>) -> bool[src]
This method tests for !=.
impl<T: Debug, E: Debug> Debug for FastResult<T, E>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<T: Copy, E: Copy> Copy for FastResult<T, E>[src]
impl<T, E> Into<Result<Consumed<T>, Consumed<Tracked<E>>>> for FastResult<T, E>[src]
impl<O, E> Into<ParseResult2<O, E>> for FastResult<O, E>[src]
fn into(self) -> ParseResult2<O, E>[src]
Performs the conversion.
impl<O, E> From<ParseResult2<O, E>> for FastResult<O, E>[src]
fn from(result: ParseResult2<O, E>) -> FastResult<O, E>[src]
Performs the conversion.
Auto Trait Implementations
impl<T, E> Send for FastResult<T, E> where
E: Send,
T: Send,
E: Send,
T: Send,
impl<T, E> Sync for FastResult<T, E> where
E: Sync,
T: Sync,
E: Sync,
T: Sync,