Struct marc::binary::DirectoryEntry
source · pub struct DirectoryEntry { /* private fields */ }
Expand description
Models the position/size data for a single, variable-length (control or data) field.
Implementations§
source§impl DirectoryEntry
impl DirectoryEntry
sourcepub fn new(
which: usize,
data_start_idx: usize,
dir_bytes: &[u8],
) -> Result<Self, String>
pub fn new( which: usize, data_start_idx: usize, dir_bytes: &[u8], ) -> Result<Self, String>
Create a new directory entry from a set of bytes and positional information.
which
- Which entry is this in the directorydata_start_idx
- Where in the record as a whole does the data we care about start.dir_bytes
- Bytes of this directory entry.
#REFERENCES
Auto Trait Implementations§
impl Freeze for DirectoryEntry
impl RefUnwindSafe for DirectoryEntry
impl Send for DirectoryEntry
impl Sync for DirectoryEntry
impl Unpin for DirectoryEntry
impl UnwindSafe for DirectoryEntry
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