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]
impl<T, E> FastResult<T, E>pub fn is_ok(&self) -> bool[src]
pub fn is_ok(&self) -> boolpub 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>, pub fn map_err<F, E2>(self, f: F) -> FastResult<T, F::Output> where
F: FnOnce(E) -> E2, [src]
pub fn map_err<F, E2>(self, f: F) -> FastResult<T, F::Output> where
F: FnOnce(E) -> E2, impl<T, E> FastResult<T, E>[src]
impl<T, E> FastResult<T, E>pub fn map<F, T2>(self, f: F) -> FastResult<F::Output, E> where
F: FnOnce(T) -> T2, [src]
pub fn map<F, T2>(self, f: F) -> FastResult<F::Output, E> where
F: FnOnce(T) -> T2, 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<Tracked<E>>>> for FastResult<T, E>[src]
impl<T, E> Into<Result<Consumed<T>, Consumed<Tracked<E>>>> for FastResult<T, E>impl<O, E> Into<ParseResult2<O, E>> for FastResult<O, E>[src]
impl<O, E> Into<ParseResult2<O, E>> for FastResult<O, E>fn into(self) -> ParseResult2<O, E>[src]
fn into(self) -> ParseResult2<O, E>Performs the conversion.
impl<O, E> From<ParseResult2<O, E>> for FastResult<O, E>[src]
impl<O, E> From<ParseResult2<O, E>> for FastResult<O, E>fn from(result: ParseResult2<O, E>) -> FastResult<O, E>[src]
fn from(result: ParseResult2<O, E>) -> FastResult<O, E>Performs the conversion.
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,