pub struct Vib<'a> { /* private fields */ }Expand description
The value information block: VIF, up to 10 VIFEs, and a plain-text unit.
Implementations§
Source§impl<'a> Vib<'a>
impl<'a> Vib<'a>
Sourcepub const fn plain_text(&self) -> Option<&'a [u8]>
pub const fn plain_text(&self) -> Option<&'a [u8]>
For a plain-text VIF (7C/FC): the unit text, as transmitted (M-Bus sends it
last character first).
Sourcepub fn description(&self) -> Description
pub fn description(&self) -> Description
What the value is: kind, unit and decimal exponent, from the primary table or
the FB/FD extension table. Combinable VIFEs are in Vib::modifiers.
Trait Implementations§
impl<'a> Copy for Vib<'a>
impl<'a> Eq for Vib<'a>
impl<'a> StructuralPartialEq for Vib<'a>
Auto Trait Implementations§
impl<'a> Forget for Vib<'a>
impl<'a> Freeze for Vib<'a>
impl<'a> Move for Vib<'a>
impl<'a> RefUnwindSafe for Vib<'a>
impl<'a> Send for Vib<'a>
impl<'a> Sync for Vib<'a>
impl<'a> Unpin for Vib<'a>
impl<'a> UnsafeUnpin for Vib<'a>where
&'a [u8]: UnsafeUnpin,
impl<'a> UnwindSafe for Vib<'a>where
&'a [u8]: UnwindSafe,
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