Enum cheddar::ParseResult [−][src]
pub enum ParseResult<T> { Ok(T), Err(ParseError), Incomplete(Needed), }
Parse result. It can either be parsed, incomplete or errored.
Variants
Ok(T)
The source was successfully parsed.
Err(ParseError)
The parser failed with a ParseError
.
Incomplete(Needed)
More data is required to go on.
Trait Implementations
impl<T> Clone for ParseResult<T> where
T: Clone,
[src]
impl<T> Clone for ParseResult<T> where
T: Clone,
fn clone(&self) -> ParseResult<T>
[src]
fn clone(&self) -> ParseResult<T>
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> Debug for ParseResult<T> where
T: Debug,
[src]
impl<T> Debug for ParseResult<T> where
T: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<T> Eq for ParseResult<T> where
T: Eq,
[src]
impl<T> Eq for ParseResult<T> where
T: Eq,
impl<T> PartialEq<ParseResult<T>> for ParseResult<T> where
T: PartialEq<T>,
[src]
impl<T> PartialEq<ParseResult<T>> for ParseResult<T> where
T: PartialEq<T>,
fn eq(&self, other: &ParseResult<T>) -> bool
[src]
fn eq(&self, other: &ParseResult<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ParseResult<T>) -> bool
[src]
fn ne(&self, other: &ParseResult<T>) -> bool
This method tests for !=
.
Auto Trait Implementations
impl<T> Send for ParseResult<T> where
T: Send,
impl<T> Send for ParseResult<T> where
T: Send,
impl<T> Sync for ParseResult<T> where
T: Sync,
impl<T> Sync for ParseResult<T> where
T: Sync,