pub enum ParseOptionError {
Generic(ParseError),
UnknownFlag {
loc: Location,
name: String,
},
UnknownValue {
loc: Location,
name: String,
value: 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.
UnknownValue
Fields
loc: Location
Location where the flag was given.
name: String
Name of the unknown value.
value: String
Value of the unknown value.
An unknown value 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
Converts to this type from the input type.
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more