pub struct ComponentKind { /* private fields */ }Expand description
ComponentKind - should be one unique value for each type of Component
Implementations§
Source§impl ComponentKind
impl ComponentKind
Sourcepub fn ser(&self, component_kinds: &ComponentKinds, writer: &mut dyn BitWrite)
pub fn ser(&self, component_kinds: &ComponentKinds, writer: &mut dyn BitWrite)
Serializes this kind’s compact net-ID into writer using the bit-width in component_kinds.
Trait 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 (const: unstable) · 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 From<ComponentKind> for TypeId
impl From<ComponentKind> for TypeId
Source§fn from(val: ComponentKind) -> Self
fn from(val: ComponentKind) -> Self
Converts to this type from the input type.
Source§impl From<TypeId> for ComponentKind
impl From<TypeId> for ComponentKind
Source§impl Hash for ComponentKind
impl Hash for ComponentKind
Source§impl PartialEq for ComponentKind
impl PartialEq for ComponentKind
Source§fn eq(&self, other: &ComponentKind) -> bool
fn eq(&self, other: &ComponentKind) -> bool
Tests for
self and other values to be equal, and is used by ==.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