pub enum DoubleDash {
Optional,
Required,
Preserve,
Automatic,
}Expand description
How an argument relates to the -- separator.
Variants§
Optional
Values may appear on either side of a --.
Required
Values are accepted only after a --.
Preserve
A -- is kept as a value rather than consumed as a separator.
Automatic
Once the argument takes a value, behave as if a -- had been given, so
the rest of the command line is values. A wrapper can then forward flags
without its caller typing the separator.
Trait Implementations§
Source§impl Clone for DoubleDash
impl Clone for DoubleDash
impl Copy for DoubleDash
Source§impl Debug for DoubleDash
impl Debug for DoubleDash
Source§impl Default for DoubleDash
impl Default for DoubleDash
impl Eq for DoubleDash
Source§impl PartialEq for DoubleDash
impl PartialEq for DoubleDash
impl StructuralPartialEq for DoubleDash
Auto Trait Implementations§
impl Freeze for DoubleDash
impl RefUnwindSafe for DoubleDash
impl Send for DoubleDash
impl Sync for DoubleDash
impl Unpin for DoubleDash
impl UnsafeUnpin for DoubleDash
impl UnwindSafe for DoubleDash
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