pub struct CommandBuffer { /* private fields */ }
Implementations§
Source§impl CommandBuffer
impl CommandBuffer
pub fn schedule( &mut self, command: impl FnOnce(&mut World) + Send + Sync + 'static, )
pub fn command(&mut self, command: impl Command)
pub fn commands(&mut self, buffer: CommandBuffer)
pub fn execute(&mut self, world: &mut World)
pub fn clear(&mut self)
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
Trait Implementations§
Source§impl Default for CommandBuffer
impl Default for CommandBuffer
Source§fn default() -> CommandBuffer
fn default() -> CommandBuffer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommandBuffer
impl !RefUnwindSafe for CommandBuffer
impl Send for CommandBuffer
impl Sync for CommandBuffer
impl Unpin for CommandBuffer
impl !UnwindSafe for CommandBuffer
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