Struct shard_ecs::descriptors::component_type_id::ComponentTypeId
source · #[repr(transparent)]pub struct ComponentTypeId(_);
Expand description
Represents the type of a Component as an identifier.
Implementations
sourceimpl ComponentTypeId
impl ComponentTypeId
pub const fn to_ne_bytes(self) -> [u8; 2]
Trait Implementations
sourceimpl Clone for ComponentTypeId
impl Clone for ComponentTypeId
sourcefn clone(&self) -> ComponentTypeId
fn clone(&self) -> ComponentTypeId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ComponentTypeId
impl Debug for ComponentTypeId
sourceimpl From<ComponentTypeId> for ArchetypeId
impl From<ComponentTypeId> for ArchetypeId
sourcefn from(value: ComponentTypeId) -> Self
fn from(value: ComponentTypeId) -> Self
Converts to this type from the input type.
sourceimpl From<u16> for ComponentTypeId
impl From<u16> for ComponentTypeId
sourceimpl Hash for ComponentTypeId
impl Hash for ComponentTypeId
sourceimpl Ord for ComponentTypeId
impl Ord for ComponentTypeId
sourcefn cmp(&self, other: &ComponentTypeId) -> Ordering
fn cmp(&self, other: &ComponentTypeId) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ComponentTypeId> for ComponentTypeId
impl PartialEq<ComponentTypeId> for ComponentTypeId
sourcefn eq(&self, other: &ComponentTypeId) -> bool
fn eq(&self, other: &ComponentTypeId) -> bool
sourceimpl PartialOrd<ComponentTypeId> for ComponentTypeId
impl PartialOrd<ComponentTypeId> for ComponentTypeId
sourcefn partial_cmp(&self, other: &ComponentTypeId) -> Option<Ordering>
fn partial_cmp(&self, other: &ComponentTypeId) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ComponentTypeId
impl Eq for ComponentTypeId
impl StructuralEq for ComponentTypeId
impl StructuralPartialEq for ComponentTypeId
Auto Trait Implementations
impl RefUnwindSafe for ComponentTypeId
impl Send for ComponentTypeId
impl Sync for ComponentTypeId
impl Unpin for ComponentTypeId
impl UnwindSafe for ComponentTypeId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more