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