Enum stm32_metapac::octospi::vals::SizeInBits
#[repr(u8)]pub enum SizeInBits {
_8BIT = 0,
_16BIT = 1,
_24BIT = 2,
_32BIT = 3,
}
Variants§
_8BIT = 0
8-bit alternate bytes
_16BIT = 1
16-bit alternate bytes
_24BIT = 2
24-bit alternate bytes
_32BIT = 3
32-bit alternate bytes
Implementations§
§impl SizeInBits
impl SizeInBits
pub const fn from_bits(val: u8) -> SizeInBits
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for SizeInBits
impl Clone for SizeInBits
§fn clone(&self) -> SizeInBits
fn clone(&self) -> SizeInBits
Returns a copy 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 more§impl From<SizeInBits> for u8
impl From<SizeInBits> for u8
§fn from(val: SizeInBits) -> u8
fn from(val: SizeInBits) -> u8
Converts to this type from the input type.
§impl From<u8> for SizeInBits
impl From<u8> for SizeInBits
§fn from(val: u8) -> SizeInBits
fn from(val: u8) -> SizeInBits
Converts to this type from the input type.
§impl Ord for SizeInBits
impl Ord for SizeInBits
§impl PartialEq for SizeInBits
impl PartialEq for SizeInBits
§fn eq(&self, other: &SizeInBits) -> bool
fn eq(&self, other: &SizeInBits) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for SizeInBits
impl PartialOrd for SizeInBits
§fn partial_cmp(&self, other: &SizeInBits) -> Option<Ordering>
fn partial_cmp(&self, other: &SizeInBits) -> Option<Ordering>
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 SizeInBits
impl Eq for SizeInBits
impl StructuralEq for SizeInBits
impl StructuralPartialEq for SizeInBits
Auto Trait Implementations§
impl RefUnwindSafe for SizeInBits
impl Send for SizeInBits
impl Sync for SizeInBits
impl Unpin for SizeInBits
impl UnwindSafe for SizeInBits
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