pub enum AttributeValue {
Int(i64),
Float(f64),
String(String<MAX_ATTRIBUTE_STRING_SIZE>),
}Expand description
Concrete attribute value from BA_ or BA_DEF_DEF_.
Represents the actual value assigned to an attribute.
Variants§
Int(i64)
Integer value (for INT and HEX types)
Float(f64)
Floating-point value (for FLOAT type)
String(String<MAX_ATTRIBUTE_STRING_SIZE>)
String value (for STRING and ENUM types)
Implementations§
Source§impl AttributeValue
impl AttributeValue
Source§impl AttributeValue
impl AttributeValue
Sourcepub fn to_dbc_string(&self) -> String
pub fn to_dbc_string(&self) -> String
Converts the attribute value to a DBC format string.
Trait Implementations§
Source§impl Clone for AttributeValue
impl Clone for AttributeValue
Source§fn clone(&self) -> AttributeValue
fn clone(&self) -> AttributeValue
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 AttributeValue
impl Debug for AttributeValue
Source§impl Display for AttributeValue
impl Display for AttributeValue
Source§impl PartialEq for AttributeValue
impl PartialEq for AttributeValue
impl StructuralPartialEq for AttributeValue
Auto Trait Implementations§
impl Freeze for AttributeValue
impl RefUnwindSafe for AttributeValue
impl Send for AttributeValue
impl Sync for AttributeValue
impl Unpin for AttributeValue
impl UnwindSafe for AttributeValue
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