pub enum OptionAction {
Store,
StoreConst,
Append,
AppendConst,
Count,
}Expand description
Action to perform when an option is encountered.
Variants§
Store
Store a single value (default).
StoreConst
Store a constant value (for flags).
Append
Append value to a list.
AppendConst
Append a constant to a list.
Count
Count occurrences.
Trait Implementations§
Source§impl Clone for OptionAction
impl Clone for OptionAction
Source§fn clone(&self) -> OptionAction
fn clone(&self) -> OptionAction
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 OptionAction
Source§impl Debug for OptionAction
impl Debug for OptionAction
Source§impl Default for OptionAction
impl Default for OptionAction
Source§fn default() -> OptionAction
fn default() -> OptionAction
Returns the “default value” for a type. Read more
impl Eq for OptionAction
Source§impl PartialEq for OptionAction
impl PartialEq for OptionAction
Source§fn eq(&self, other: &OptionAction) -> bool
fn eq(&self, other: &OptionAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OptionAction
Auto Trait Implementations§
impl Freeze for OptionAction
impl RefUnwindSafe for OptionAction
impl Send for OptionAction
impl Sync for OptionAction
impl Unpin for OptionAction
impl UnsafeUnpin for OptionAction
impl UnwindSafe for OptionAction
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