pub struct CommandsRegister<E> { /* private fields */ }
Implementations§
Source§impl<E: ErrorHandler> CommandsRegister<E>
impl<E: ErrorHandler> CommandsRegister<E>
pub fn new(error_handle: E, help_command: bool) -> Self
pub fn get_error_handler(&self) -> &E
pub fn get_command(&mut self, command_str: &str) -> Option<&mut GenericCommand>
pub fn start(&mut self)
pub fn end(&mut self)
pub fn register_command(&mut self, command: GenericCommand)
pub fn check_input(&mut self, input: String) -> bool
pub fn help(&mut self, args: &[&str])
Trait Implementations§
Source§impl Default for CommandsRegister<NErrorHandler>
impl Default for CommandsRegister<NErrorHandler>
Auto Trait Implementations§
impl<E> Freeze for CommandsRegister<E>where
E: Freeze,
impl<E> !RefUnwindSafe for CommandsRegister<E>
impl<E> !Send for CommandsRegister<E>
impl<E> !Sync for CommandsRegister<E>
impl<E> Unpin for CommandsRegister<E>where
E: Unpin,
impl<E> !UnwindSafe for CommandsRegister<E>
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