pub enum ParseOptionError {
Generic(ParseError),
UnknownFlag {
loc: Location,
name: String,
},
}
Expand description
An error type returned by parse_options
.
Variants
Generic(ParseError)
A generic ParseError.
UnknownFlag
An unknown flag was used, with the given name at the given location.
Trait Implementations
sourceimpl From<ParseOptionError> for ParseError
impl From<ParseOptionError> for ParseError
sourcefn from(err: ParseOptionError) -> Self
fn from(err: ParseOptionError) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ParseOptionError
impl Send for ParseOptionError
impl Sync for ParseOptionError
impl Unpin for ParseOptionError
impl UnwindSafe for ParseOptionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more