pub struct ComponentChanged<'w, T: 'static>(/* private fields */);Methods from Deref<Target = ComponentEvent<'w, T>>§
Trait Implementations§
Source§impl<'w, T> Deref for ComponentChanged<'w, T>
impl<'w, T> Deref for ComponentChanged<'w, T>
Source§impl<T: 'static> SystemParam for ComponentChanged<'_, T>
impl<T: 'static> SystemParam for ComponentChanged<'_, T>
Source§type State = (Arc<EventVec<Entity>>, usize)
type State = (Arc<EventVec<Entity>>, usize)
Used to store data which persists across invocations of a system.
type Item<'w> = ComponentChanged<'w, T>
Source§fn init_state(world: &mut World, _meta: &mut SystemMeta) -> Self::State
fn init_state(world: &mut World, _meta: &mut SystemMeta) -> Self::State
The item type returned when constructing this system param.
The value of this associated type should be
Self, instantiated with new lifetimes. Read moreSource§fn get_param<'world>(state: &'world mut Self::State) -> Self::Item<'world>
fn get_param<'world>(state: &'world mut Self::State) -> Self::Item<'world>
Creates a parameter to be passed into a
SystemParamFunction. Read morefn get_self<'world>(state: &'world mut Self::State) -> Self
fn init(_state: &mut Self::State)
impl<T> Send for ComponentChanged<'_, T>
impl<T> Sync for ComponentChanged<'_, T>
Auto Trait Implementations§
impl<'w, T> Freeze for ComponentChanged<'w, T>
impl<'w, T> RefUnwindSafe for ComponentChanged<'w, T>where
T: RefUnwindSafe,
impl<'w, T> Unpin for ComponentChanged<'w, T>where
T: Unpin,
impl<'w, T> UnwindSafe for ComponentChanged<'w, T>where
T: 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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§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.Source§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.