#[repr(u8)]pub enum IdentifierCode {
Generic = 0,
Maker = 1,
Product = 2,
Revision = 3,
}
Expand description
Identifies the type of identifier.
Variants§
Generic = 0
Generic identification.
Maker = 1
Identifies the maker.
Product = 2
Identifies the product.
Revision = 3
Identifies the revision.
Trait Implementations§
Source§impl<'a> BorrowDecode<'a> for IdentifierCode
impl<'a> BorrowDecode<'a> for IdentifierCode
Source§fn borrow_decode<D: BorrowDecoder<'a>>(
decoder: &mut D,
) -> Result<Self, DecodeError>
fn borrow_decode<D: BorrowDecoder<'a>>( decoder: &mut D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for IdentifierCode
impl Clone for IdentifierCode
Source§fn clone(&self) -> IdentifierCode
fn clone(&self) -> IdentifierCode
Returns a copy 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 IdentifierCode
impl Debug for IdentifierCode
Source§impl Decode for IdentifierCode
impl Decode for IdentifierCode
Source§impl Encode for IdentifierCode
impl Encode for IdentifierCode
Source§impl Format for IdentifierCode
impl Format for IdentifierCode
Source§impl Hash for IdentifierCode
impl Hash for IdentifierCode
Source§impl Ord for IdentifierCode
impl Ord for IdentifierCode
Source§fn cmp(&self, other: &IdentifierCode) -> Ordering
fn cmp(&self, other: &IdentifierCode) -> 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 IdentifierCode
impl PartialEq for IdentifierCode
Source§impl PartialOrd for IdentifierCode
impl PartialOrd for IdentifierCode
impl Copy for IdentifierCode
impl Eq for IdentifierCode
impl StructuralPartialEq for IdentifierCode
Auto Trait Implementations§
impl Freeze for IdentifierCode
impl RefUnwindSafe for IdentifierCode
impl Send for IdentifierCode
impl Sync for IdentifierCode
impl Unpin for IdentifierCode
impl UnwindSafe for IdentifierCode
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