[−][src]Enum combine::error::FastResult
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: PartialEq, E: PartialEq> PartialEq<FastResult<T, E>> for FastResult<T, E>
[src]
fn eq(&self, other: &FastResult<T, E>) -> bool
[src]
fn ne(&self, other: &FastResult<T, E>) -> bool
[src]
impl<T: Clone, E: Clone> Clone for FastResult<T, E>
[src]
fn clone(&self) -> FastResult<T, E>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<O, E> From<Result<(O, Consumed<()>), Consumed<Tracked<E>>>> for FastResult<O, E>
[src]
fn from(result: ParseResult2<O, E>) -> FastResult<O, E>
[src]
impl<T, E> Into<Result<Consumed<T>, Consumed<Tracked<E>>>> for FastResult<T, E>
[src]
impl<O, E> Into<Result<(O, Consumed<()>), Consumed<Tracked<E>>>> for FastResult<O, E>
[src]
fn into(self) -> ParseResult2<O, E>
[src]
impl<T: Copy, E: Copy> Copy for FastResult<T, E>
[src]
impl<T: Debug, E: Debug> Debug for FastResult<T, E>
[src]
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,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'a mut Wfn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'a mut W
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,