dbc-rs 0.8.0

Database CAN (DBC) parsing and editing library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! [`AttributeValue`].

#[allow(unused_imports)]
use super::*;

/// Concrete attribute value from BA_ or BA_DEF_DEF_.
///
/// Represents the actual value assigned to an attribute.
#[derive(Debug, Clone, PartialEq)]
pub enum AttributeValue {
    /// Integer value (for INT and HEX types)
    Int(i64),
    /// Floating-point value (for FLOAT type)
    Float(f64),
    /// String value (for STRING and ENUM types)
    String(AttributeString),
}