Enum mbpr::ParseResult
[−]
[src]
pub enum ParseResult<T> { Ok(T), Err(Fault), }
Internal Result type
Variants
Ok(T)
Err(Fault)
Methods
impl<T> ParseResult<T>
[src]
fn unwrap(self) -> T
Unwraps the value. Panics on failure
fn is_ok(&self) -> bool
Checks if value is okay
fn is_err(&self) -> bool
Check if the value is error
fn ok(self) -> Option<T>
Get Okay Value
fn err(self) -> Option<Fault>
Get Error Value
Trait Implementations
impl<'a, T> From<IResult<&'a [u8], T>> for ParseResult<T>
[src]
fn from(x: IResult<&'a [u8], T>) -> ParseResult<T>
You can ignore this
It is an internal method for handling nom's parser errors