[−][src]Enum combine::error::ParseResult
A Result
type which has the committed status flattened into the result.
Conversions to and from std::result::Result
can be done using result.into()
or
From::from(result)
Variants
The parser has succeeded and has committed to this parse. If a parser after this fails,
other parser alternatives will not be attempted (CommitErr
will be returned)
The parser has succeeded and has not committed to this parse. If a parser after this fails,
other parser alternatives will be attempted (PeekErr
will be returned)
The parser failed other parse alternatives will not be attempted.
PeekErr(Tracked<E>)
The parser failed but other parse alternatives may be attempted.
Implementations
impl<T, E> ParseResult<T, E>
[src]
pub fn is_ok(&self) -> bool
[src]
pub fn is_err(&self) -> bool
[src]
pub fn as_ref(&self) -> ParseResult<&T, &E>
[src]
pub fn and_then<F, T2>(self, f: F) -> F::Output where
F: FnOnce(T) -> ParseResult<T2, E>,
[src]
F: FnOnce(T) -> ParseResult<T2, E>,
pub fn map_err<F, E2>(self, f: F) -> ParseResult<T, F::Output> where
F: FnOnce(E) -> E2,
[src]
F: FnOnce(E) -> E2,
pub fn map<F, T2>(self, f: F) -> ParseResult<F::Output, E> where
F: FnOnce(T) -> T2,
[src]
F: FnOnce(T) -> T2,
impl<O, E> ParseResult<O, E>
[src]
pub fn into_result(self) -> StdParseResult2<O, E>
[src]
Trait Implementations
impl<T: Clone, E: Clone> Clone for ParseResult<T, E>
[src]
fn clone(&self) -> ParseResult<T, E>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy, E: Copy> Copy for ParseResult<T, E>
[src]
impl<T: Debug, E: Debug> Debug for ParseResult<T, E>
[src]
impl<O, E> From<Result<(O, Commit<()>), Commit<Tracked<E>>>> for ParseResult<O, E>
[src]
fn from(result: StdParseResult2<O, E>) -> ParseResult<O, E>
[src]
impl<O, E> Into<Result<(O, Commit<()>), Commit<Tracked<E>>>> for ParseResult<O, E>
[src]
fn into(self) -> StdParseResult2<O, E>
[src]
impl<T, E> Into<Result<Commit<T>, Commit<Tracked<E>>>> for ParseResult<T, E>
[src]
impl<T: PartialEq, E: PartialEq> PartialEq<ParseResult<T, E>> for ParseResult<T, E>
[src]
fn eq(&self, other: &ParseResult<T, E>) -> bool
[src]
fn ne(&self, other: &ParseResult<T, E>) -> bool
[src]
impl<T, E> StructuralPartialEq for ParseResult<T, E>
[src]
Auto Trait Implementations
impl<T, E> RefUnwindSafe for ParseResult<T, E> where
E: RefUnwindSafe,
T: RefUnwindSafe,
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> Send for ParseResult<T, E> where
E: Send,
T: Send,
E: Send,
T: Send,
impl<T, E> Sync for ParseResult<T, E> where
E: Sync,
T: Sync,
E: Sync,
T: Sync,
impl<T, E> Unpin for ParseResult<T, E> where
E: Unpin,
T: Unpin,
E: Unpin,
T: Unpin,
impl<T, E> UnwindSafe for ParseResult<T, E> where
E: UnwindSafe,
T: UnwindSafe,
E: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,