pub struct CommandEntry {
pub doc: &'static str,
pub args: &'static [CommandArg],
pub parse: CommandParser,
}Expand description
A command’s registry entry, built by [register!].
Fields§
§doc: &'static str§args: &'static [CommandArg]§parse: CommandParserTrait Implementations§
Source§impl Clone for CommandEntry
impl Clone for CommandEntry
impl Copy for CommandEntry
Auto Trait Implementations§
impl Forget for CommandEntry
impl Freeze for CommandEntry
impl Move for CommandEntry
impl RefUnwindSafe for CommandEntry
impl Send for CommandEntry
impl Sync for CommandEntry
impl Unpin for CommandEntry
impl UnsafeUnpin for CommandEntry
impl UnwindSafe for CommandEntry
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