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