pub struct CommandRegistry { /* private fields */ }
Implementations§
Source§impl CommandRegistry
impl CommandRegistry
pub fn get(&self, name: &str) -> Option<&Box<dyn Command>>
pub fn register(&mut self, cmd: Box<dyn Command>)
pub fn execute(&self, cmd: &str, args: &[String])
pub fn load_internal_commands(&mut self)
pub fn load_from(&mut self, source: Box<dyn CommandSource>)
pub fn len(&self) -> usize
Auto Trait Implementations§
impl Freeze for CommandRegistry
impl !RefUnwindSafe for CommandRegistry
impl !Send for CommandRegistry
impl !Sync for CommandRegistry
impl Unpin for CommandRegistry
impl !UnwindSafe for CommandRegistry
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