pub struct SignalInfo {
pub name: String,
pub start_bit: u32,
pub length: u32,
pub byte_order: String,
pub is_signed: bool,
pub factor: f64,
pub offset: f64,
pub min: f64,
pub max: f64,
pub unit: String,
pub comment: Option<String>,
}Expand description
Signal definition from DBC.
Fields§
§name: String§start_bit: u32§length: u32§byte_order: String§is_signed: bool§factor: f64§offset: f64§min: f64§max: f64§unit: String§comment: Option<String>Comment from CM_ SG_ entry
Trait Implementations§
Source§impl Clone for SignalInfo
impl Clone for SignalInfo
Source§fn clone(&self) -> SignalInfo
fn clone(&self) -> SignalInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 SignalInfo
impl Debug for SignalInfo
Auto Trait Implementations§
impl Freeze for SignalInfo
impl RefUnwindSafe for SignalInfo
impl Send for SignalInfo
impl Sync for SignalInfo
impl Unpin for SignalInfo
impl UnwindSafe for SignalInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more