Struct bones_lib::ecs::stage::CommandQueue
source · pub struct CommandQueue {
pub queue: VecDeque<StaticSystem<(), ()>>,
}
Expand description
A resource containing the Commands
command queue.
You can use Commands
as a SystemParam
as a shortcut to ResMut<CommandQueue>
.
Fields§
§queue: VecDeque<StaticSystem<(), ()>>
The system queue that will be run at the end of the stage
Implementations§
source§impl CommandQueue
impl CommandQueue
sourcepub fn add<Args, S>(&mut self, system: S)where
S: IntoSystem<Args, (), (), Sys = StaticSystem<(), ()>>,
pub fn add<Args, S>(&mut self, system: S)where S: IntoSystem<Args, (), (), Sys = StaticSystem<(), ()>>,
Add a system to be run at the end of the stage.
Trait Implementations§
source§impl Clone for CommandQueue
impl Clone for CommandQueue
source§fn clone(&self) -> CommandQueue
fn clone(&self) -> CommandQueue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for CommandQueue
impl Default for CommandQueue
source§fn default() -> CommandQueue
fn default() -> CommandQueue
Returns the “default value” for a type. Read more
source§impl HasSchema for CommandQueue
impl HasSchema for CommandQueue
§fn register_schema()
fn register_schema()
Register this schema with the global schema registry. Read more
§fn cast<T>(this: &Self) -> &Twhere
T: HasSchema,
fn cast<T>(this: &Self) -> &Twhere T: HasSchema,
Cast a reference of this type to a reference of another type with the same memory layout. Read more
§fn try_cast<T>(this: &Self) -> Result<&T, SchemaMismatchError>where
T: HasSchema,
fn try_cast<T>(this: &Self) -> Result<&T, SchemaMismatchError>where T: HasSchema,
Cast a reference of this type to a reference of another type with the same memory layout. Read more
§fn cast_mut<T>(this: &mut Self) -> &mut Twhere
T: HasSchema,
fn cast_mut<T>(this: &mut Self) -> &mut Twhere T: HasSchema,
Cast a mutable reference of this type to a reference of another type with the same memory
layout. Read more
§fn try_cast_mut<T>(this: &mut Self) -> Result<&mut T, SchemaMismatchError>where
T: HasSchema,
fn try_cast_mut<T>(this: &mut Self) -> Result<&mut T, SchemaMismatchError>where T: HasSchema,
Cast a mutable reference of this type to a reference of another type with the same memory
layout. Read more
§fn as_schema_ref(&self) -> SchemaRef<'_>where
Self: Sized,
fn as_schema_ref(&self) -> SchemaRef<'_>where Self: Sized,
Converts a reference of
T
to a SchemaRef
§fn as_schema_mut(&mut self) -> SchemaRefMut<'_>where
Self: Sized,
fn as_schema_mut(&mut self) -> SchemaRefMut<'_>where Self: Sized,
Converts a reference of
T
to a SchemaRefMut
Auto Trait Implementations§
impl !RefUnwindSafe for CommandQueue
impl Send for CommandQueue
impl Sync for CommandQueue
impl Unpin for CommandQueue
impl !UnwindSafe for CommandQueue
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
source§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere T: Default,
source§fn from_world(_world: &World) -> T
fn from_world(_world: &World) -> T
Creates
Self
using data from the given World
.