pub struct ParseOptions {
pub strict_boundary_check: bool,
}Expand description
Options for configuring DBC parsing behavior.
§Examples
use dbc_rs::{Dbc, ParseOptions};
let dbc_content = r#"VERSION "1.0"
BU_: ECM
BO_ 256 Test : 8 ECM
SG_ Signal1 : 0|8@1+ (1,0) [0|255] ""
"#;
// Use lenient mode to allow signals that extend beyond message boundaries
let options = ParseOptions::lenient();
let dbc = Dbc::parse_with_options(dbc_content, options)?;Fields§
§strict_boundary_check: boolIf true, signals that extend beyond message boundaries will cause a parse error.
If false, such signals will be allowed (lenient mode).
Default: true (strict mode)
§Note
Many real-world DBC files have signals that technically extend beyond message
boundaries but are still valid in practice. Setting this to false allows
parsing such files.
Implementations§
Source§impl ParseOptions
impl ParseOptions
Trait Implementations§
Source§impl Clone for ParseOptions
impl Clone for ParseOptions
Source§fn clone(&self) -> ParseOptions
fn clone(&self) -> ParseOptions
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 ParseOptions
impl Debug for ParseOptions
Source§impl Default for ParseOptions
impl Default for ParseOptions
Source§impl PartialEq for ParseOptions
impl PartialEq for ParseOptions
impl Copy for ParseOptions
impl Eq for ParseOptions
impl StructuralPartialEq for ParseOptions
Auto Trait Implementations§
impl Freeze for ParseOptions
impl RefUnwindSafe for ParseOptions
impl Send for ParseOptions
impl Sync for ParseOptions
impl Unpin for ParseOptions
impl UnwindSafe for ParseOptions
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