Struct shell_creator::shell::Shell
source · pub struct Shell { /* private fields */ }
Implementations
sourceimpl Shell
impl Shell
pub fn new() -> Shell
pub fn with_input_prompt(self, input_prompt: &str) -> Shell
pub fn add_command(&mut self, command: ShellCommand)
pub fn remove_command(&mut self, name: &str)
pub fn get_command(&self, name: &str) -> Option<&ShellCommand>
pub fn run(&mut self) -> Result<(), String>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Shell
impl !Send for Shell
impl !Sync for Shell
impl Unpin for Shell
impl !UnwindSafe for Shell
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more