pub struct CommandLine<'a> { /* private fields */ }
Implementations§
Source§impl<'a> CommandLine<'a>
impl<'a> CommandLine<'a>
pub fn new() -> Self
pub fn register(&mut self, command: Command<'a>) -> &mut Self
pub fn deregister(&mut self, command: Command<'a>)
pub fn lookup(&self, name: &str) -> Option<&Command<'a>>
pub fn lookup_mut(&mut self, name: &str) -> Option<&mut Command<'a>>
pub fn run(&mut self, input: &str) -> ExecResult<'_>
Auto Trait Implementations§
impl<'a> Freeze for CommandLine<'a>
impl<'a> RefUnwindSafe for CommandLine<'a>
impl<'a> !Send for CommandLine<'a>
impl<'a> !Sync for CommandLine<'a>
impl<'a> Unpin for CommandLine<'a>
impl<'a> UnwindSafe for CommandLine<'a>
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