#[non_exhaustive]pub enum HasArgs {
Any,
NonEmpty,
None,
Exact(usize),
}Expand description
Specifies how many arguments a command must have to match.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Any
Accept any number of arguments (including zero).
NonEmpty
Require at least one argument.
None
Require zero arguments.
Exact(usize)
Require exactly this many arguments.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HasArgs
impl RefUnwindSafe for HasArgs
impl Send for HasArgs
impl Sync for HasArgs
impl Unpin for HasArgs
impl UnsafeUnpin for HasArgs
impl UnwindSafe for HasArgs
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