pub struct Device {
pub address: u16,
pub name: String,
pub fields: Vec<DeviceField>,
}Fields§
§address: u16§name: String§fields: Vec<DeviceField>Implementations§
Source§impl Device
impl Device
Sourcepub fn extend_fields(&mut self, other: Vec<DeviceField>)
pub fn extend_fields(&mut self, other: Vec<DeviceField>)
Extend the fields of this DeviceMap with another set of fields
Sourcepub fn get_field_address(&self, field_name: &str) -> Option<u16>
pub fn get_field_address(&self, field_name: &str) -> Option<u16>
Get the address of a field by name, using field offsets and sizes
Trait Implementations§
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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