Enum avr_hal_generic::i2c::Direction
source · [−]#[repr(u8)]
pub enum Direction {
Write,
Read,
}
Expand description
I2C Transfer Direction
Variants
Write
Write to a slave (LSB is 0)
Read
Read from a slave (LSB is 1)
Trait Implementations
impl Copy for Direction
impl Eq for Direction
impl StructuralEq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more