#[repr(transparent)]pub struct ByteClassId(pub u16);Expand description
Index of a byte class into ClassTable.
Tuple Fields§
§0: u16Implementations§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for ByteClassId
impl<'__de, __Context> BorrowDecode<'__de, __Context> for ByteClassId
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for ByteClassId
impl Clone for ByteClassId
Source§fn clone(&self) -> ByteClassId
fn clone(&self) -> ByteClassId
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 moreimpl Copy for ByteClassId
Source§impl Debug for ByteClassId
impl Debug for ByteClassId
Source§impl<__Context> Decode<__Context> for ByteClassId
impl<__Context> Decode<__Context> for ByteClassId
Source§impl Default for ByteClassId
impl Default for ByteClassId
Source§fn default() -> ByteClassId
fn default() -> ByteClassId
Returns the “default value” for a type. Read more
Source§impl Encode for ByteClassId
impl Encode for ByteClassId
impl Eq for ByteClassId
Source§impl From<ByteClassId> for u16
impl From<ByteClassId> for u16
Source§fn from(id: ByteClassId) -> u16
fn from(id: ByteClassId) -> u16
Converts to this type from the input type.
Source§impl Hash for ByteClassId
impl Hash for ByteClassId
Source§impl Ord for ByteClassId
impl Ord for ByteClassId
Source§fn cmp(&self, other: &ByteClassId) -> Ordering
fn cmp(&self, other: &ByteClassId) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn 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
Source§impl PartialEq for ByteClassId
impl PartialEq for ByteClassId
Source§impl PartialOrd for ByteClassId
impl PartialOrd for ByteClassId
impl StructuralPartialEq for ByteClassId
Auto Trait Implementations§
impl Freeze for ByteClassId
impl RefUnwindSafe for ByteClassId
impl Send for ByteClassId
impl Sync for ByteClassId
impl Unpin for ByteClassId
impl UnsafeUnpin for ByteClassId
impl UnwindSafe for ByteClassId
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