pub struct Dbc {
pub version: Option<String>,
pub nodes: Vec<Node>,
pub messages: Vec<Message>,
pub value_tables: Vec<ValueTable>,
pub attributes: Vec<Attribute>,
pub extended_multiplexing: Vec<ExtendedMux>,
}Expand description
A parsed DBC database.
Fields§
§version: Option<String>VERSION "..." string, when present.
nodes: Vec<Node>Nodes from the BU_ section.
messages: Vec<Message>Messages (BO_) with their signals (SG_).
value_tables: Vec<ValueTable>Value tables from VAL_ and VAL_TABLE_.
attributes: Vec<Attribute>Attribute assignments from BA_ (BA_DEF_ schemas and
BA_DEF_DEF_ defaults are validated-and-skipped, not retained).
extended_multiplexing: Vec<ExtendedMux>Extended-multiplexing range sets from SG_MUL_VAL_.
Implementations§
Source§impl Dbc
impl Dbc
Sourcepub fn parse(input: &str) -> Result<Self, DbcError>
pub fn parse(input: &str) -> Result<Self, DbcError>
Parses a DBC document — the primary entry point.
§Errors
DbcError::Syntax for malformed known constructs (with 1-based
line numbers), DbcError::InvalidId for unrepresentable message
ids. Unknown vendor keywords are skipped, never rejected.
Trait Implementations§
impl StructuralPartialEq for Dbc
Auto Trait Implementations§
impl Freeze for Dbc
impl RefUnwindSafe for Dbc
impl Send for Dbc
impl Sync for Dbc
impl Unpin for Dbc
impl UnsafeUnpin for Dbc
impl UnwindSafe for Dbc
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