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
An unknown value was used, with the given name at the given location.
Trait Implementations§
source§impl From<ParseOptionError> for ParseError
impl From<ParseOptionError> for ParseError
source§fn from(err: ParseOptionError) -> Self
fn from(err: ParseOptionError) -> Self
Converts to this type from the input type.