pub struct LazyDbcParser<'a> { /* private fields */ }Expand description
A lazy-loading DBC parser
Implementations§
Source§impl<'a> LazyDbcParser<'a>
impl<'a> LazyDbcParser<'a>
Sourcepub fn new(
data: &'a [u8],
header: &'a DbcHeader,
schema: Option<&'a Schema>,
string_block: Arc<StringBlock>,
) -> Self
pub fn new( data: &'a [u8], header: &'a DbcHeader, schema: Option<&'a Schema>, string_block: Arc<StringBlock>, ) -> Self
Create a new lazy DBC parser
Sourcepub fn record_iterator(&self) -> LazyRecordIterator<'a> ⓘ
pub fn record_iterator(&self) -> LazyRecordIterator<'a> ⓘ
Get a lazy record iterator
Sourcepub fn get_record(&self, index: u32) -> Result<Record>
pub fn get_record(&self, index: u32) -> Result<Record>
Get a record by index
Sourcepub fn string_block(&self) -> &StringBlock
pub fn string_block(&self) -> &StringBlock
Get the string block
Auto Trait Implementations§
impl<'a> Freeze for LazyDbcParser<'a>
impl<'a> RefUnwindSafe for LazyDbcParser<'a>
impl<'a> Send for LazyDbcParser<'a>
impl<'a> Sync for LazyDbcParser<'a>
impl<'a> Unpin for LazyDbcParser<'a>
impl<'a> UnwindSafe for LazyDbcParser<'a>
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