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
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Engine<'a>
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