pub struct Kilo;Available on crate feature
flecs_units only.Expand description
Kilo unit prefix.
Trait Implementations§
Source§impl ComponentId for Kilo
impl ComponentId for Kilo
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 Kilo
impl ComponentInfo for Kilo
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 Kilo
impl OnComponentRegistration for Kilo
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 Kilo
Auto Trait Implementations§
impl Freeze for Kilo
impl RefUnwindSafe for Kilo
impl Send for Kilo
impl Sync for Kilo
impl Unpin for Kilo
impl UnsafeUnpin for Kilo
impl UnwindSafe for Kilo
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