#[repr(C)]pub struct Ecc(/* private fields */);
Expand description
8 character code.
Implementations§
source§impl Ecc
impl Ecc
sourcepub const fn new(name: &str) -> Ecc
pub const fn new(name: &str) -> Ecc
Create a new identifier. Panics if the provided string is empty or if the number of ‘bytes’ which represent the string won’t fit into a u64. i.e. the utf8 representation must be less than 9 bytes.
sourcepub fn endian(&self, rhs: Ecc) -> Option<Endian>
pub fn endian(&self, rhs: Ecc) -> Option<Endian>
Compare the Ecc’s in two ways, native and opposing endians. If equivalent, returns Some with the endianess otherwise None. NOTE: Will panic if rhs is a symetric id where endian can not be detected.
sourcepub const fn swap_bytes(&self) -> Ecc
pub const fn swap_bytes(&self) -> Ecc
Swap the endianess of the code.
sourcepub fn as_slice_mut(&mut self) -> &mut [u8] ⓘ
pub fn as_slice_mut(&mut self) -> &mut [u8] ⓘ
Get the Ecc as a mutable slice.
Methods from Deref<Target = u64>§
pub const MIN: u64 = 0u64
pub const MAX: u64 = 18_446_744_073_709_551_615u64
pub const BITS: u32 = 64u32
Trait Implementations§
source§impl Ord for Ecc
impl Ord for Ecc
source§impl PartialOrd for Ecc
impl PartialOrd for Ecc
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 Ecc
impl Eq for Ecc
impl StructuralPartialEq for Ecc
Auto Trait Implementations§
impl RefUnwindSafe for Ecc
impl Send for Ecc
impl Sync for Ecc
impl Unpin for Ecc
impl UnwindSafe for Ecc
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