pub struct RecordSet { /* private fields */ }Expand description
Represents a collection of records from a DBC file
Implementations§
Source§impl RecordSet
impl RecordSet
Sourcepub fn get_record(&self, index: usize) -> Option<&Record>
pub fn get_record(&self, index: usize) -> Option<&Record>
Get a record by index
Sourcepub fn get_record_by_key(&self, key: Key) -> Option<&Record>
pub fn get_record_by_key(&self, key: Key) -> Option<&Record>
Get a record by key (requires a key field to be defined in the schema)
Sourcepub fn get_string(&self, string_ref: StringRef) -> Result<&str>
pub fn get_string(&self, string_ref: StringRef) -> Result<&str>
Get a string from the string block
Sourcepub fn string_block(&self) -> &StringBlock
pub fn string_block(&self) -> &StringBlock
Get the string block
Sourcepub fn enable_string_caching(&mut self)
pub fn enable_string_caching(&mut self)
Enable string caching for faster string lookups
Sourcepub fn create_sorted_key_map(&mut self) -> Result<()>
pub fn create_sorted_key_map(&mut self) -> Result<()>
Create a sorted key map for efficient key lookups using binary search
Sourcepub fn get_record_by_key_binary_search(&self, key: Key) -> Option<&Record>
pub fn get_record_by_key_binary_search(&self, key: Key) -> Option<&Record>
Look up a record by key using binary search (requires create_sorted_key_map to be called first)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RecordSet
impl RefUnwindSafe for RecordSet
impl Send for RecordSet
impl Sync for RecordSet
impl Unpin for RecordSet
impl UnwindSafe for RecordSet
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