Struct m_bus_parser::user_data::IdentificationNumber
source · pub struct IdentificationNumber {
pub number: u32,
}Fields§
§number: u32Implementations§
source§impl IdentificationNumber
impl IdentificationNumber
pub fn from_bcd_hex_digits( digits: [u8; 4], ) -> Result<Self, ApplicationLayerError>
Trait Implementations§
source§impl Debug for IdentificationNumber
impl Debug for IdentificationNumber
source§impl From<IdentificationNumber> for u32
impl From<IdentificationNumber> for u32
source§fn from(id: IdentificationNumber) -> Self
fn from(id: IdentificationNumber) -> Self
Converts to this type from the input type.
source§impl PartialEq for IdentificationNumber
impl PartialEq for IdentificationNumber
source§fn eq(&self, other: &IdentificationNumber) -> bool
fn eq(&self, other: &IdentificationNumber) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for IdentificationNumber
Auto Trait Implementations§
impl Freeze for IdentificationNumber
impl RefUnwindSafe for IdentificationNumber
impl Send for IdentificationNumber
impl Sync for IdentificationNumber
impl Unpin for IdentificationNumber
impl UnwindSafe for IdentificationNumber
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