#[repr(u32)]pub enum IdType {
Id = 0,
Ecc2 = 1,
Uuid = 2,
Au8 = 3,
EccU64 = 4,
U64s = 5,
}
Expand description
Identifier type as specified in the hff header. This has no impact on behavior at all, it is only a hint to the end user about how to use/view the ID’s.
Variants§
Id = 0
A simple u128.
Ecc2 = 1
Dual eight character codes.
Uuid = 2
A UUID.
Au8 = 3
An array of u8.
EccU64 = 4
An eight character code and a u64.
U64s = 5
Two u64’s.
Methods from Deref<Target = u32>§
pub const MIN: u32 = 0u32
pub const MAX: u32 = 4_294_967_295u32
pub const BITS: u32 = 32u32
Trait Implementations§
source§impl Ord for IdType
impl Ord for IdType
source§impl PartialEq for IdType
impl PartialEq for IdType
source§impl PartialOrd for IdType
impl PartialOrd for IdType
1.0.0 · source§fn 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 IdType
impl Eq for IdType
impl StructuralPartialEq for IdType
Auto Trait Implementations§
impl RefUnwindSafe for IdType
impl Send for IdType
impl Sync for IdType
impl Unpin for IdType
impl UnwindSafe for IdType
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