pub enum Address {
SevenBit(u8),
TenBit(u16),
}Expand description
I2C target address.
Use Address::SevenBit for the usual 7-bit addressing, and Address::TenBit for
devices using the 10-bit addressing extension. A bare u8 converts to a 7-bit address,
a bare u16 to a 10-bit one.
Variants§
Trait Implementations§
impl Copy for Address
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnsafeUnpin for Address
impl UnwindSafe for Address
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