Enum specs::prelude::ComponentEvent
source · [−]Expand description
Component storage events received from a FlaggedStorage
or any storage
that implements Tracked
.
Variants
Inserted(Index)
An insertion event, note that a modification event will be triggered if the entity already had a component and had a new one inserted.
Modified(Index)
A modification event, this will be sent any time a component is accessed
mutably so be careful with joins over &mut storages
as it could
potentially flag all of them.
Removed(Index)
A removal event.
Trait Implementations
sourceimpl Clone for ComponentEvent
impl Clone for ComponentEvent
sourcefn clone(&self) -> ComponentEvent
fn clone(&self) -> ComponentEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ComponentEvent
impl Debug for ComponentEvent
sourceimpl PartialEq<ComponentEvent> for ComponentEvent
impl PartialEq<ComponentEvent> for ComponentEvent
sourcefn eq(&self, other: &ComponentEvent) -> bool
fn eq(&self, other: &ComponentEvent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ComponentEvent) -> bool
fn ne(&self, other: &ComponentEvent) -> bool
This method tests for !=
.
impl Copy for ComponentEvent
impl Eq for ComponentEvent
impl StructuralEq for ComponentEvent
impl StructuralPartialEq for ComponentEvent
Auto Trait Implementations
impl RefUnwindSafe for ComponentEvent
impl Send for ComponentEvent
impl Sync for ComponentEvent
impl Unpin for ComponentEvent
impl UnwindSafe for ComponentEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more