pub struct UnpackedComponent {
pub target_name: &'static str,
pub raw: u64,
pub bits: u8,
pub scale: Option<f64>,
pub offset: Option<f64>,
pub units: Option<&'static str>,
pub accumulate: bool,
}Expand description
Result of unpacking one component.
Fields§
§target_name: &'static strComponent’s name from Profile.xlsx — points at another field on the same message that the value should be stored under.
raw: u64Raw integer extracted from the bit stream. Apply scale/offset downstream if needed.
bits: u8§scale: Option<f64>§offset: Option<f64>§units: Option<&'static str>§accumulate: boolTrait Implementations§
Source§impl Clone for UnpackedComponent
impl Clone for UnpackedComponent
Source§fn clone(&self) -> UnpackedComponent
fn clone(&self) -> UnpackedComponent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnpackedComponent
impl Debug for UnpackedComponent
Source§impl PartialEq for UnpackedComponent
impl PartialEq for UnpackedComponent
Source§fn eq(&self, other: &UnpackedComponent) -> bool
fn eq(&self, other: &UnpackedComponent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UnpackedComponent
Auto Trait Implementations§
impl Freeze for UnpackedComponent
impl RefUnwindSafe for UnpackedComponent
impl Send for UnpackedComponent
impl Sync for UnpackedComponent
impl Unpin for UnpackedComponent
impl UnsafeUnpin for UnpackedComponent
impl UnwindSafe for UnpackedComponent
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