pub struct SignalMeta {
pub enum_map: HashMap<i128, String>,
pub float_format: Option<FloatFormat>,
pub sig_comment: Option<String>,
}Expand description
Signal metadata for a signal’s value interpretation and DBC description/comment.
Encapsulates optional formatting information for a signal, including enum mappings (for value descriptions) and float format specifications (for IEEE-754 encoded signals).
Also includes the signal-level description/comment from the DBC, if available.
Fields§
§enum_map: HashMap<i128, String>Maps raw signal values to string enum labels from DBC value descriptions.
float_format: Option<FloatFormat>The IEEE-754 float format, if this signal is an IEEE float/double.
sig_comment: Option<String>Signal-level description/comment from the DBC.
Trait Implementations§
Source§impl Clone for SignalMeta
impl Clone for SignalMeta
Source§fn clone(&self) -> SignalMeta
fn clone(&self) -> SignalMeta
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 SignalMeta
impl Debug for SignalMeta
Source§impl Default for SignalMeta
impl Default for SignalMeta
Source§fn default() -> SignalMeta
fn default() -> SignalMeta
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SignalMeta
impl RefUnwindSafe for SignalMeta
impl Send for SignalMeta
impl Sync for SignalMeta
impl Unpin for SignalMeta
impl UnsafeUnpin for SignalMeta
impl UnwindSafe for SignalMeta
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