pub struct OnInsert;
Expand description
Trigger emitted when a component is inserted on to to an entity.
Trait Implementations§
Source§impl Component for OnInsert
impl Component for OnInsert
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 OnInsert
Auto Trait Implementations§
impl Freeze for OnInsert
impl RefUnwindSafe for OnInsert
impl Send for OnInsert
impl Sync for OnInsert
impl Unpin for OnInsert
impl UnwindSafe for OnInsert
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