pub enum OptionState {
BarePresent,
WithValues(Vec<String>),
}Expand description
What happened to a single option on the command line.
Variants§
BarePresent
Flag was passed with no value (bare --foo or -f).
WithValues(Vec<String>)
Flag was passed with value(s). Length 1 for scalar, >=1 for list.
Trait Implementations§
Source§impl Clone for OptionState
impl Clone for OptionState
Source§fn clone(&self) -> OptionState
fn clone(&self) -> OptionState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OptionState
impl RefUnwindSafe for OptionState
impl Send for OptionState
impl Sync for OptionState
impl Unpin for OptionState
impl UnsafeUnpin for OptionState
impl UnwindSafe for OptionState
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