pub struct OnRemove;
Expand description
Trigger emitted when a component is removed from an entity.
Trait Implementations§
Source§impl Component for OnRemove
impl Component for OnRemove
Source§const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet
const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet
A constant indicating the storage type used for this component.
Source§fn register_component_hooks(_hooks: &mut ComponentHooks)
fn register_component_hooks(_hooks: &mut ComponentHooks)
Called when registering this component, allowing mutable access to its
ComponentHooks
.impl Event for OnRemove
Auto Trait Implementations§
impl Freeze for OnRemove
impl RefUnwindSafe for OnRemove
impl Send for OnRemove
impl Sync for OnRemove
impl Unpin for OnRemove
impl UnwindSafe for OnRemove
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