Enum combine::error::FastResult
source · pub enum FastResult<T, E> {
ConsumedOk(T),
EmptyOk(T),
ConsumedErr(E),
EmptyErr(Tracked<E>),
}
Variants§
Implementations§
source§impl<T, E> FastResult<T, E>
impl<T, E> FastResult<T, E>
source§impl<T, E> FastResult<T, E>
impl<T, E> FastResult<T, E>
pub fn map<F, T2>(self, f: F) -> FastResult<F::Output, E>where F: FnOnce(T) -> T2,
Trait Implementations§
source§impl<T: Clone, E: Clone> Clone for FastResult<T, E>
impl<T: Clone, E: Clone> Clone for FastResult<T, E>
source§fn clone(&self) -> FastResult<T, E>
fn clone(&self) -> FastResult<T, E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<O, E> From<Result<(O, Consumed<()>), Consumed<Tracked<E>>>> for FastResult<O, E>
impl<O, E> From<Result<(O, Consumed<()>), Consumed<Tracked<E>>>> for FastResult<O, E>
source§fn from(result: ParseResult2<O, E>) -> FastResult<O, E>
fn from(result: ParseResult2<O, E>) -> FastResult<O, E>
Converts to this type from the input type.
source§impl<O, E> Into<Result<(O, Consumed<()>), Consumed<Tracked<E>>>> for FastResult<O, E>
impl<O, E> Into<Result<(O, Consumed<()>), Consumed<Tracked<E>>>> for FastResult<O, E>
source§fn into(self) -> ParseResult2<O, E>
fn into(self) -> ParseResult2<O, E>
Converts this type into the (usually inferred) input type.
source§impl<T: PartialEq, E: PartialEq> PartialEq for FastResult<T, E>
impl<T: PartialEq, E: PartialEq> PartialEq for FastResult<T, E>
source§fn eq(&self, other: &FastResult<T, E>) -> bool
fn eq(&self, other: &FastResult<T, E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Copy, E: Copy> Copy for FastResult<T, E>
impl<T, E> StructuralPartialEq for FastResult<T, E>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more