pub struct I2cMapping<SDA, SCL>(/* private fields */);
Trait Implementations§
Source§impl<SDA: Clone, SCL: Clone> Clone for I2cMapping<SDA, SCL>
impl<SDA: Clone, SCL: Clone> Clone for I2cMapping<SDA, SCL>
Source§fn clone(&self) -> I2cMapping<SDA, SCL>
fn clone(&self) -> I2cMapping<SDA, SCL>
Returns a duplicate 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 moreSource§impl I2cBusMapping<Pin<P0_26<Input<Floating>>>, Pin<P0_27<Input<Floating>>>> for I2cMapping<Pin<P0_26<Input<Floating>>>, Pin<P0_27<Input<Floating>>>>
impl I2cBusMapping<Pin<P0_26<Input<Floating>>>, Pin<P0_27<Input<Floating>>>> for I2cMapping<Pin<P0_26<Input<Floating>>>, Pin<P0_27<Input<Floating>>>>
impl<SDA: Copy, SCL: Copy> Copy for I2cMapping<SDA, SCL>
Auto Trait Implementations§
impl<SDA, SCL> Freeze for I2cMapping<SDA, SCL>
impl<SDA, SCL> RefUnwindSafe for I2cMapping<SDA, SCL>where
SDA: RefUnwindSafe,
SCL: RefUnwindSafe,
impl<SDA, SCL> Send for I2cMapping<SDA, SCL>
impl<SDA, SCL> Sync for I2cMapping<SDA, SCL>
impl<SDA, SCL> Unpin for I2cMapping<SDA, SCL>
impl<SDA, SCL> UnwindSafe for I2cMapping<SDA, SCL>where
SDA: UnwindSafe,
SCL: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<A, SDA, SCL> I2cBusMappingExt<SDA, SCL> for A
impl<A, SDA, SCL> I2cBusMappingExt<SDA, SCL> for A
Source§fn initialize(self, sda: SDA, scl: SCL) -> Initialize<Self, SDA, SCL>
fn initialize(self, sda: SDA, scl: SCL) -> Initialize<Self, SDA, SCL>
Initializes a new I²C bus based off of the two provided SDA (data) and SCL (clock) pins.