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
Source§fn clone(&self) -> DoubleDash
fn clone(&self) -> DoubleDash
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DoubleDash
Source§impl Debug for DoubleDash
impl Debug for DoubleDash
Source§impl Default for DoubleDash
impl Default for DoubleDash
Source§fn default() -> DoubleDash
fn default() -> DoubleDash
Returns the “default value” for a type. Read more
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