pub struct CommandQueue<TCommand> { /* private fields */ }
Implementations§
Source§impl<TCommand> CommandQueue<TCommand>
impl<TCommand> CommandQueue<TCommand>
pub fn new(cur_resource_id: usize) -> CommandQueue<TCommand>
Sourcepub fn run<TInterpreter: Interpreter<TCommand>>(
&mut self,
interpreter: &mut TInterpreter,
) -> Result<(), TInterpreter::ErrorType>
pub fn run<TInterpreter: Interpreter<TCommand>>( &mut self, interpreter: &mut TInterpreter, ) -> Result<(), TInterpreter::ErrorType>
Execute all commands contained in this command queue with the given interpreter
§Arguments
interpreter
- The command interpreter
Sourcepub fn get_last_resource_id(&self) -> usize
pub fn get_last_resource_id(&self) -> usize
Gets the last resource index
Auto Trait Implementations§
impl<TCommand> Freeze for CommandQueue<TCommand>
impl<TCommand> RefUnwindSafe for CommandQueue<TCommand>where
TCommand: RefUnwindSafe,
impl<TCommand> Send for CommandQueue<TCommand>where
TCommand: Send,
impl<TCommand> Sync for CommandQueue<TCommand>where
TCommand: Sync,
impl<TCommand> Unpin for CommandQueue<TCommand>where
TCommand: Unpin,
impl<TCommand> UnwindSafe for CommandQueue<TCommand>where
TCommand: UnwindSafe,
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