Struct krush_engine::Engine
source · pub struct Engine { /* private fields */ }Expand description
The place where to register your commands and run them
Implementations§
source§impl Engine
impl Engine
sourcepub fn register_command(&mut self, name: &'static str, definition: Definition)
pub fn register_command(&mut self, name: &'static str, definition: Definition)
Adds a new command to the Engine registry with given name and Definition
Auto Trait Implementations§
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnwindSafe for Engine
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