pub struct ControllerId { /* private fields */ }
Implementations§
source§impl ControllerId
impl ControllerId
source§impl ControllerId
impl ControllerId
sourcepub const fn into_bytes(self) -> [u8; 2]
pub const fn into_bytes(self) -> [u8; 2]
sourcepub const fn from_bytes(bytes: [u8; 2]) -> Self
pub const fn from_bytes(bytes: [u8; 2]) -> Self
Converts the given bytes directly into the bitfield struct.
Trait Implementations§
source§impl From<ControllerId> for u16
impl From<ControllerId> for u16
source§fn from(c: ControllerId) -> Self
fn from(c: ControllerId) -> Self
Converts to this type from the input type.
source§impl From<u16> for ControllerId
impl From<u16> for ControllerId
source§impl Specifier for ControllerId
impl Specifier for ControllerId
source§type InOut = ControllerId
type InOut = ControllerId
The interface type of the specifier. Read more
source§fn into_bytes(value: Self::InOut) -> Result<Self::Bytes, OutOfBounds>
fn into_bytes(value: Self::InOut) -> Result<Self::Bytes, OutOfBounds>
Converts some bytes into the in-out type. Read more
source§fn from_bytes(
bytes: Self::Bytes,
) -> Result<Self::InOut, InvalidBitPattern<Self::Bytes>>
fn from_bytes( bytes: Self::Bytes, ) -> Result<Self::InOut, InvalidBitPattern<Self::Bytes>>
Converts the given bytes into the in-out type. Read more
Auto Trait Implementations§
impl Freeze for ControllerId
impl RefUnwindSafe for ControllerId
impl Send for ControllerId
impl Sync for ControllerId
impl Unpin for ControllerId
impl UnwindSafe for ControllerId
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