pub enum Fit {
Exact,
Joined,
Plain,
}Expand description
How a handler takes a command’s arguments.
Variants§
Exact
A typed handler with exactly as many arguments as were given.
Joined
A typed handler ending in a greedy string, the extra words joined
into it (the game may have parsed them as separate words).
Plain
A plain (schema-less) handler, with whatever was typed.
Implementations§
Trait Implementations§
impl Copy for Fit
impl Eq for Fit
impl StructuralPartialEq for Fit
Auto Trait Implementations§
impl Freeze for Fit
impl RefUnwindSafe for Fit
impl Send for Fit
impl Sync for Fit
impl Unpin for Fit
impl UnsafeUnpin for Fit
impl UnwindSafe for Fit
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