pub enum NumValues {
None,
Fixed(usize),
AtLeast(usize),
Between(usize, usize),
Any,
}
Expand description
The number of values users are able to assign an arg If None we will treat the arg as a flag. This is a special case because if flags are seen multiple times (e.g -vvv) we need to handle that as extra verbose by exposing the number of repetitions. This isn’t needed for normal flags though - just now we overwrite them, but in the future we may move to appending there
Variants§
Trait Implementations§
impl StructuralPartialEq for NumValues
Auto Trait Implementations§
impl Freeze for NumValues
impl RefUnwindSafe for NumValues
impl Send for NumValues
impl Sync for NumValues
impl Unpin for NumValues
impl UnwindSafe for NumValues
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