pub enum Count {
Contextual,
MinusOne,
Exact(usize),
}Expand description
This represents how to determine what count argument should be applied to an action.
Variants§
Contextual
Use the count provided by the user, or 1 if one was not given.
MinusOne
Use the count provided by the user minus 1, or 0 if one was not given.
Exact(usize)
Ignore the count provided by the user, and use the exact amount specified here.
Trait Implementations§
impl Eq for Count
impl StructuralPartialEq for Count
Auto Trait Implementations§
impl Freeze for Count
impl RefUnwindSafe for Count
impl Send for Count
impl Sync for Count
impl Unpin for Count
impl UnwindSafe for Count
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