pub struct MspSetModeRange {
pub index: u8,
pub mode_range: MspModeRange,
}Fields§
§index: u8§mode_range: MspModeRangeImplementations§
Source§impl MspSetModeRange
impl MspSetModeRange
Sourcepub fn packed_struct_display_formatter<'a>(
&'a self,
) -> PackedStructDisplay<'a, Self, [u8; 5]>
pub fn packed_struct_display_formatter<'a>( &'a self, ) -> PackedStructDisplay<'a, Self, [u8; 5]>
Display formatter for console applications
Trait Implementations§
Source§impl Clone for MspSetModeRange
impl Clone for MspSetModeRange
Source§fn clone(&self) -> MspSetModeRange
fn clone(&self) -> MspSetModeRange
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 moreSource§impl Debug for MspSetModeRange
impl Debug for MspSetModeRange
Source§impl Display for MspSetModeRange
impl Display for MspSetModeRange
Source§impl PackedStruct<[u8; 5]> for MspSetModeRange
Structure that can be packed an unpacked into 5 bytes.
impl PackedStruct<[u8; 5]> for MspSetModeRange
Structure that can be packed an unpacked into 5 bytes.
| Bit, MSB0 | Name | Type |
| 0:7 | index | u8 |
| 8:39 | mode_range | MspModeRange |
Source§impl PackedStructDebug for MspSetModeRange
impl PackedStructDebug for MspSetModeRange
Source§impl PackedStructInfo for MspSetModeRange
impl PackedStructInfo for MspSetModeRange
Source§fn packed_bits() -> usize
fn packed_bits() -> usize
Number of bits that this structure occupies when being packed.
Source§impl PackedStructSlice for MspSetModeRange
impl PackedStructSlice for MspSetModeRange
Source§fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
Pack the structure into an output buffer.
Source§fn unpack_from_slice(src: &[u8]) -> Result<Self, PackingError>
fn unpack_from_slice(src: &[u8]) -> Result<Self, PackingError>
Unpack the structure from a buffer.
Source§fn packed_bytes() -> usize
fn packed_bytes() -> usize
Number of bytes that this structure demands for packing or unpacking.
Source§fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
Pack the structure into a new byte vector.
impl Copy for MspSetModeRange
Auto Trait Implementations§
impl Freeze for MspSetModeRange
impl RefUnwindSafe for MspSetModeRange
impl Send for MspSetModeRange
impl Sync for MspSetModeRange
impl Unpin for MspSetModeRange
impl UnsafeUnpin for MspSetModeRange
impl UnwindSafe for MspSetModeRange
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