pub struct Command {
pub name: &'static str,
pub arg_type: CmdArgs,
pub help: &'static str,
pub action: fn(_: &mut Repl, _: &str),
}
Expand description
A command definition.
Fields
name: &'static str
The command name.
arg_type: CmdArgs
Arguments expected type.
help: &'static str
Help string.
action: fn(_: &mut Repl, _: &str)
Action to take.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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