pub struct Commands { /* private fields */ }
Implementations§
Source§impl Commands
impl Commands
pub fn add_command( &mut self, command_name: &'static str, functionality: MRc<dyn Cmd>, ) -> bool
pub fn find(&self, command: &str) -> Option<MRc<dyn Cmd>>
pub fn suggest(&self, command: &str, tolerance: u64) -> Vec<&String>
pub fn prefix<'a>(&'a self, command: &'a str) -> Vec<&&str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Commands
impl !RefUnwindSafe for Commands
impl !Send for Commands
impl !Sync for Commands
impl Unpin for Commands
impl !UnwindSafe for Commands
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