pub struct Console {
pub command_table: HashMap<String, Command>,
pub prompt: String,
}
Expand description
The main constructor owning the console. It contains the command table and the prompt string.
Fields§
§command_table: HashMap<String, Command>
Used for aliasing function pointers with names to be looked up later when their alias is typed in to the prompt.
prompt: String
The characters that come before input, like >>
or Console ->
.
Implementations§
Auto Trait Implementations§
impl Freeze for Console
impl RefUnwindSafe for Console
impl Send for Console
impl Sync for Console
impl Unpin for Console
impl UnwindSafe for Console
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