pub struct EncodedHigh { /* private fields */ }
Implementations§
Source§impl EncodedHigh
impl EncodedHigh
Sourcepub const fn new() -> EncodedHigh
pub const fn new() -> EncodedHigh
Returns an instance with zero initialized data.
Source§impl EncodedHigh
impl EncodedHigh
Sourcepub const fn into_bytes(self) -> [u8; 2]
pub const fn into_bytes(self) -> [u8; 2]
Sourcepub const fn from_bytes(bytes: [u8; 2]) -> EncodedHigh
pub const fn from_bytes(bytes: [u8; 2]) -> EncodedHigh
Converts the given bytes directly into the bitfield struct.
Trait Implementations§
Source§impl Clone for EncodedHigh
impl Clone for EncodedHigh
Source§fn clone(&self) -> EncodedHigh
fn clone(&self) -> EncodedHigh
Returns a duplicate 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 moreimpl Copy for EncodedHigh
Auto Trait Implementations§
impl Freeze for EncodedHigh
impl RefUnwindSafe for EncodedHigh
impl Send for EncodedHigh
impl Sync for EncodedHigh
impl Unpin for EncodedHigh
impl UnwindSafe for EncodedHigh
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