pub struct ComponentKind(pub u16);Expand description
A component type identifier. Used by the Encoder to determine how to serialize/deserialize a specific component’s fields.
In Phase 1, this is a simple enum discriminant. In Phase 3, this may become a compile-time type hash.
Tuple Fields§
§0: u16Trait Implementations§
Source§impl Clone for ComponentKind
impl Clone for ComponentKind
Source§fn clone(&self) -> ComponentKind
fn clone(&self) -> ComponentKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComponentKind
impl Debug for ComponentKind
Source§impl<'de> Deserialize<'de> for ComponentKind
impl<'de> Deserialize<'de> for ComponentKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ComponentKind
impl Hash for ComponentKind
Source§impl Ord for ComponentKind
impl Ord for ComponentKind
Source§fn cmp(&self, other: &ComponentKind) -> Ordering
fn cmp(&self, other: &ComponentKind) -> Ordering
1.21.0 · Source§fn 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
Source§impl PartialEq for ComponentKind
impl PartialEq for ComponentKind
Source§impl PartialOrd for ComponentKind
impl PartialOrd for ComponentKind
Source§impl Serialize for ComponentKind
impl Serialize for ComponentKind
impl Copy for ComponentKind
impl Eq for ComponentKind
impl StructuralPartialEq for ComponentKind
Auto Trait Implementations§
impl Freeze for ComponentKind
impl RefUnwindSafe for ComponentKind
impl Send for ComponentKind
impl Sync for ComponentKind
impl Unpin for ComponentKind
impl UnsafeUnpin for ComponentKind
impl UnwindSafe for ComponentKind
Blanket Implementations§
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