pub struct DbcParser { /* private fields */ }Expand description
Parser for DBC files
Implementations§
Source§impl DbcParser
impl DbcParser
Sourcepub fn parse_bytes(bytes: &[u8]) -> Result<Self>
pub fn parse_bytes(bytes: &[u8]) -> Result<Self>
Parse a DBC file from a byte slice
Sourcepub fn with_schema(self, schema: Schema) -> Result<Self>
pub fn with_schema(self, schema: Schema) -> Result<Self>
Set the schema for parsing records
Sourcepub fn parse_records(&self) -> Result<RecordSet>
pub fn parse_records(&self) -> Result<RecordSet>
Parse all records from the DBC file
Sourcepub fn version(&self) -> DbcVersion
pub fn version(&self) -> DbcVersion
Get the DBC version
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DbcParser
impl RefUnwindSafe for DbcParser
impl Send for DbcParser
impl Sync for DbcParser
impl Unpin for DbcParser
impl UnwindSafe for DbcParser
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