pub struct Command<Context, E> { /* fields omitted */ }
Expand description
Struct to define a command in the REPL
impl<Context, E> Command<Context, E>
Create a new command with the given name and callback function
Add a parameter to the command. The order of the parameters is the same as the order in
which this is called for each parameter.
Add a help summary for the command
Formats the value using the given formatter. Read more
impl<Context, E> PartialEq<Command<Context, E>> for Command<Context, E>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.