#[repr(C)]pub union i2c_smbus_data {
pub byte: u8,
pub word: u16,
pub block: [u8; 34],
}Fields§
§byte: u8§word: u16§block: [u8; 34]Trait Implementations§
Source§impl Clone for i2c_smbus_data
impl Clone for i2c_smbus_data
Source§fn clone(&self) -> i2c_smbus_data
fn clone(&self) -> i2c_smbus_data
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 Default for i2c_smbus_data
impl Default for i2c_smbus_data
Source§fn default() -> i2c_smbus_data
fn default() -> i2c_smbus_data
Returns the “default value” for a type. Read more
impl Copy for i2c_smbus_data
Auto Trait Implementations§
impl Freeze for i2c_smbus_data
impl RefUnwindSafe for i2c_smbus_data
impl Send for i2c_smbus_data
impl Sync for i2c_smbus_data
impl Unpin for i2c_smbus_data
impl UnwindSafe for i2c_smbus_data
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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more