pub struct DeviceInfo<'a> {
pub bus: u8,
pub addr: u8,
pub name: &'a str,
}Expand description
One PROP_I2C_DEVICES item.
BUS (UINT8) | ADDR (UINT8) | NAME (UTF-8)Fields§
§bus: u8§addr: u8The 7-bit address.
name: &'a strThe part the firmware knows to be there.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for DeviceInfo<'a>
impl<'a> Clone for DeviceInfo<'a>
Source§fn clone(&self) -> DeviceInfo<'a>
fn clone(&self) -> DeviceInfo<'a>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for DeviceInfo<'a>
impl<'a> Debug for DeviceInfo<'a>
Source§impl<'a> PartialEq for DeviceInfo<'a>
impl<'a> PartialEq for DeviceInfo<'a>
impl<'a> Copy for DeviceInfo<'a>
impl<'a> Eq for DeviceInfo<'a>
impl<'a> StructuralPartialEq for DeviceInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeviceInfo<'a>
impl<'a> RefUnwindSafe for DeviceInfo<'a>
impl<'a> Send for DeviceInfo<'a>
impl<'a> Sync for DeviceInfo<'a>
impl<'a> Unpin for DeviceInfo<'a>
impl<'a> UnwindSafe for DeviceInfo<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)