Enum stm32_metapac::i2c::vals::Dir
#[repr(u8)]pub enum Dir {
WRITE = 0,
READ = 1,
}
Variants§
WRITE = 0
Write transfer, slave enters receiver mode
READ = 1
Read transfer, slave enters transmitter mode
Implementations§
Trait Implementations§
§impl Ord for Dir
impl Ord for Dir
§impl PartialOrd for Dir
impl PartialOrd for Dir
§fn partial_cmp(&self, other: &Dir) -> Option<Ordering>
fn partial_cmp(&self, other: &Dir) -> 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 Dir
impl Eq for Dir
impl StructuralEq for Dir
impl StructuralPartialEq for Dir
Auto Trait Implementations§
impl RefUnwindSafe for Dir
impl Send for Dir
impl Sync for Dir
impl Unpin for Dir
impl UnwindSafe for Dir
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