Enum stm32_metapac::octospi::vals::SampleShift
#[repr(u8)]pub enum SampleShift {
NONE = 0,
HALFCYCLE = 1,
}
Variants§
Implementations§
§impl SampleShift
impl SampleShift
pub const fn from_bits(val: u8) -> SampleShift
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for SampleShift
impl Clone for SampleShift
§fn clone(&self) -> SampleShift
fn clone(&self) -> SampleShift
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<SampleShift> for u8
impl From<SampleShift> for u8
§fn from(val: SampleShift) -> u8
fn from(val: SampleShift) -> u8
Converts to this type from the input type.
§impl From<u8> for SampleShift
impl From<u8> for SampleShift
§fn from(val: u8) -> SampleShift
fn from(val: u8) -> SampleShift
Converts to this type from the input type.
§impl Ord for SampleShift
impl Ord for SampleShift
§impl PartialEq for SampleShift
impl PartialEq for SampleShift
§fn eq(&self, other: &SampleShift) -> bool
fn eq(&self, other: &SampleShift) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for SampleShift
impl PartialOrd for SampleShift
§fn partial_cmp(&self, other: &SampleShift) -> Option<Ordering>
fn partial_cmp(&self, other: &SampleShift) -> 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 SampleShift
impl Eq for SampleShift
impl StructuralEq for SampleShift
impl StructuralPartialEq for SampleShift
Auto Trait Implementations§
impl RefUnwindSafe for SampleShift
impl Send for SampleShift
impl Sync for SampleShift
impl Unpin for SampleShift
impl UnwindSafe for SampleShift
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