#[non_exhaustive]pub enum OptFlags {
OptionsEverywhere,
PrefixMatchLongOptions,
}Expand description
Flags for changing command-line parser’s behavior.
See OptSpecs::flag method for more information.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OptionsEverywhere
Accept command-line options and other arguments in mixed order in the command line. That is, options can come after non-option arguments.
This is not the default behavior. By default the first non-option argument in the command line stops option parsing and the rest of the command line is parsed as non-options (other arguments), even if they look like options.
PrefixMatchLongOptions
Long options don’t need to be written in full in the command line. They can be shortened as long as there are enough characters to find a unique prefix match. If there are more than one match the option given in the command line is classified as unknown.
Trait Implementations§
impl StructuralPartialEq for OptFlags
Auto Trait Implementations§
impl Freeze for OptFlags
impl RefUnwindSafe for OptFlags
impl Send for OptFlags
impl Sync for OptFlags
impl Unpin for OptFlags
impl UnwindSafe for OptFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more