#[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.
Trait Implementations§
Source§impl Ord for Ecc
impl Ord for Ecc
Source§impl PartialOrd for Ecc
impl PartialOrd for Ecc
impl Copy for Ecc
impl Eq for Ecc
impl StructuralPartialEq for Ecc
Auto Trait Implementations§
impl Freeze for Ecc
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