Struct m_bus_parser::user_data::ManufacturerCode
source · pub struct ManufacturerCode {
pub code: [char; 3],
}Fields§
§code: [char; 3]Implementations§
source§impl ManufacturerCode
impl ManufacturerCode
pub fn from_id(id: u16) -> Result<Self, ApplicationLayerError>
Trait Implementations§
source§impl Debug for ManufacturerCode
impl Debug for ManufacturerCode
source§impl PartialEq for ManufacturerCode
impl PartialEq for ManufacturerCode
source§fn eq(&self, other: &ManufacturerCode) -> bool
fn eq(&self, other: &ManufacturerCode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ManufacturerCode
Auto Trait Implementations§
impl Freeze for ManufacturerCode
impl RefUnwindSafe for ManufacturerCode
impl Send for ManufacturerCode
impl Sync for ManufacturerCode
impl Unpin for ManufacturerCode
impl UnwindSafe for ManufacturerCode
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