Enum cliparser::types::ArgumentOccurrence
source · [−]pub enum ArgumentOccurrence {
Single,
Multiple,
}
Expand description
The argument occurrence type (see values for more info)
Variants
Single
The argument can appear only once
Multiple
The argument can appear multiple times. The value of each occurrence will be picked up so even args with single value constraint can have multiple values if they support multiple occurrences.
Trait Implementations
sourceimpl Clone for ArgumentOccurrence
impl Clone for ArgumentOccurrence
sourcefn clone(&self) -> ArgumentOccurrence
fn clone(&self) -> ArgumentOccurrence
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ArgumentOccurrence
impl Debug for ArgumentOccurrence
impl Copy for ArgumentOccurrence
impl StructuralPartialEq for ArgumentOccurrence
Auto Trait Implementations
impl RefUnwindSafe for ArgumentOccurrence
impl Send for ArgumentOccurrence
impl Sync for ArgumentOccurrence
impl Unpin for ArgumentOccurrence
impl UnwindSafe for ArgumentOccurrence
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more