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