pub struct Alias;Expand description
Trait Implementations§
Source§impl ComponentId for Alias
impl ComponentId for Alias
Source§fn is_registered_with_world<'a>(_: impl WorldProvider<'a>) -> bool
fn is_registered_with_world<'a>(_: impl WorldProvider<'a>) -> bool
checks if the component is registered with a world.
Source§fn entity_id<'a>(_world: impl WorldProvider<'a>) -> ecs_id_t
fn entity_id<'a>(_world: impl WorldProvider<'a>) -> ecs_id_t
returns the component id registered with a particular world. If the component is not registered, it will register it. Read more
Source§fn id() -> Id<Self>
fn id() -> Id<Self>
utility function to returning an Id object which is used for fn’s that take
IntoEntity or IntoId variablefn register_ctor_hook<'a>(world: impl WorldProvider<'a>)where
Self: Default,
fn register_clone_hook<'a>(world: impl WorldProvider<'a>)where
Self: Clone,
Source§impl ComponentInfo for Alias
impl ComponentInfo for Alias
Source§impl OnComponentRegistration for Alias
impl OnComponentRegistration for Alias
Source§fn on_component_registration(_world: WorldRef<'_>, _component_id: Entity)
fn on_component_registration(_world: WorldRef<'_>, _component_id: Entity)
This function is called when a component is first registered.
Implementing it allows for custom injectable code to be executed on component registration
impl TagComponent for Alias
Auto Trait Implementations§
impl Freeze for Alias
impl RefUnwindSafe for Alias
impl Send for Alias
impl Sync for Alias
impl Unpin for Alias
impl UnsafeUnpin for Alias
impl UnwindSafe for Alias
Blanket Implementations§
impl<T> AccessArg for T
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