Struct bevy::ecs::removal_detection::RemovedComponentEvents
pub struct RemovedComponentEvents { /* private fields */ }
Expand description
Wrapper around a map of components to Events<RemovedComponentEntity>
.
So that we can find the events without naming the type directly.
Implementations§
§impl RemovedComponentEvents
impl RemovedComponentEvents
pub fn new() -> RemovedComponentEvents
pub fn update(&mut self)
pub fn get( &self, component_id: impl Into<ComponentId> ) -> Option<&Events<RemovedComponentEntity>>
pub fn send(&mut self, component_id: impl Into<ComponentId>, entity: Entity)
Trait Implementations§
§impl Debug for RemovedComponentEvents
impl Debug for RemovedComponentEvents
§impl Default for RemovedComponentEvents
impl Default for RemovedComponentEvents
§fn default() -> RemovedComponentEvents
fn default() -> RemovedComponentEvents
Returns the “default value” for a type. Read more
§impl<'a> SystemParam for &'a RemovedComponentEvents
impl<'a> SystemParam for &'a RemovedComponentEvents
§type Item = &'w RemovedComponentEvents
type Item = &'w RemovedComponentEvents
The item type returned when constructing this system param.
The value of this associated type should be
Self
, instantiated with new lifetimes. Read more§fn init_state(
_world: &mut World,
_system_meta: &mut SystemMeta
) -> <&'a RemovedComponentEvents as SystemParam>::State
fn init_state( _world: &mut World, _system_meta: &mut SystemMeta ) -> <&'a RemovedComponentEvents as SystemParam>::State
Registers any
World
access used by this SystemParam
and creates a new instance of this param’s State
.§unsafe fn get_param<'w, 's>(
_state: &'s mut <&'a RemovedComponentEvents as SystemParam>::State,
_system_meta: &SystemMeta,
world: &'w World,
_change_tick: u32
) -> <&'a RemovedComponentEvents as SystemParam>::Item<'w, 's>
unsafe fn get_param<'w, 's>( _state: &'s mut <&'a RemovedComponentEvents as SystemParam>::State, _system_meta: &SystemMeta, world: &'w World, _change_tick: u32 ) -> <&'a RemovedComponentEvents as SystemParam>::Item<'w, 's>
Safety Read more
§fn new_archetype(
_state: &mut Self::State,
_archetype: &Archetype,
_system_meta: &mut SystemMeta
)
fn new_archetype( _state: &mut Self::State, _archetype: &Archetype, _system_meta: &mut SystemMeta )
For the specified
Archetype
, registers the components accessed by this SystemParam
(if applicable).§fn apply(state: &mut Self::State, system_meta: &SystemMeta, world: &mut World)
fn apply(state: &mut Self::State, system_meta: &SystemMeta, world: &mut World)
Applies any deferred mutations stored in this
SystemParam
’s state.
This is used to apply Commands
during apply_system_buffers
.impl<'a> ReadOnlySystemParam for &'a RemovedComponentEvents
Auto Trait Implementations§
impl RefUnwindSafe for RemovedComponentEvents
impl Send for RemovedComponentEvents
impl Sync for RemovedComponentEvents
impl Unpin for RemovedComponentEvents
impl UnwindSafe for RemovedComponentEvents
Blanket Implementations§
§impl<T, U> AsBindGroupShaderType<U> for Twhere
U: ShaderType,
&'a T: for<'a> Into<U>,
impl<T, U> AsBindGroupShaderType<U> for Twhere U: ShaderType, &'a T: for<'a> Into<U>,
§fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
Return the
T
ShaderType
for self
. When used in AsBindGroup
derives, it is safe to assume that all images in self
exist.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates
Self
using data from the given World