pub struct Prefixes;Available on crate feature
flecs_units only.Expand description
Parent scope for prefixes.
Trait Implementations§
Source§impl ComponentId for Prefixes
impl ComponentId for Prefixes
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,
Source§impl ComponentInfo for Prefixes
impl ComponentInfo for Prefixes
const IS_GENERIC: bool = false
const IS_ENUM: bool = false
const IS_TAG: bool = true
const IMPLS_CLONE: bool = false
const IMPLS_DEFAULT: bool = false
const IMPLS_PARTIAL_ORD: bool = false
const IMPLS_PARTIAL_EQ: bool = false
const NEEDS_DROP: bool = _
Source§impl OnComponentRegistration for Prefixes
impl OnComponentRegistration for Prefixes
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 Prefixes
Auto Trait Implementations§
impl Freeze for Prefixes
impl RefUnwindSafe for Prefixes
impl Send for Prefixes
impl Sync for Prefixes
impl Unpin for Prefixes
impl UnsafeUnpin for Prefixes
impl UnwindSafe for Prefixes
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