Struct evenio::component::RemoveComponent
source · pub struct RemoveComponent(pub ComponentId);Expand description
An event sent immediately before a component is removed from the world. Contains the ID of the component to be removed.
Tuple Fields§
§0: ComponentIdTrait Implementations§
source§impl Clone for RemoveComponent
impl Clone for RemoveComponent
source§fn clone(&self) -> RemoveComponent
fn clone(&self) -> RemoveComponent
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 Debug for RemoveComponent
impl Debug for RemoveComponent
source§impl Event for RemoveComponent
impl Event for RemoveComponent
source§impl Hash for RemoveComponent
impl Hash for RemoveComponent
source§impl Ord for RemoveComponent
impl Ord for RemoveComponent
source§fn cmp(&self, other: &RemoveComponent) -> Ordering
fn cmp(&self, other: &RemoveComponent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RemoveComponent
impl PartialEq for RemoveComponent
source§fn eq(&self, other: &RemoveComponent) -> bool
fn eq(&self, other: &RemoveComponent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for RemoveComponent
impl PartialOrd for RemoveComponent
source§fn partial_cmp(&self, other: &RemoveComponent) -> Option<Ordering>
fn partial_cmp(&self, other: &RemoveComponent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for RemoveComponent
impl Eq for RemoveComponent
impl StructuralPartialEq for RemoveComponent
Auto Trait Implementations§
impl RefUnwindSafe for RemoveComponent
impl Send for RemoveComponent
impl Sync for RemoveComponent
impl Unpin for RemoveComponent
impl UnwindSafe for RemoveComponent
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<E> EventSet for Ewhere
E: Event,
impl<E> EventSet for Ewhere
E: Event,
§type EventIndices = u32
type EventIndices = u32
The set of event indices.
source§fn new_state(world: &mut World) -> <E as EventSet>::EventIndices
fn new_state(world: &mut World) -> <E as EventSet>::EventIndices
Creates the set of event indices.
source§fn event_idx_of<F>(state: &<E as EventSet>::EventIndices) -> Option<u32>where
F: Event,
fn event_idx_of<F>(state: &<E as EventSet>::EventIndices) -> Option<u32>where
F: Event,
Gets an event index from the set. Returns
None if event E
is not in the set.source§fn for_each_idx<F>(state: &<E as EventSet>::EventIndices, f: F)
fn for_each_idx<F>(state: &<E as EventSet>::EventIndices, f: F)
Run a function on each event index in the set.