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