pub struct Xref {
pub trailer: Dict,
/* private fields */
}Expand description
The merged cross-reference table plus the (merged) trailer dictionary.
Fields§
§trailer: DictMerged trailer dictionary; keys from newer sections win.
Implementations§
Source§impl Xref
impl Xref
Sourcepub fn newest_section(&self) -> Option<NewestSection>
pub fn newest_section(&self) -> Option<NewestSection>
The file’s newest cross-reference section: its offset and kind, as
recorded while the section chain was walked. None when the file
was loaded by a whole-file recovery scan, which has no single
section to point to.
Sourcepub fn merge(&mut self, older: Xref)
pub fn merge(&mut self, older: Xref)
Merges an older section into this one. Entries already present win (sections are walked newest to oldest, first-seen wins); trailer keys and the newest-section record already present are kept.
Covers ISO 32000-1 §7.5.6.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Xref
impl RefUnwindSafe for Xref
impl Send for Xref
impl Sync for Xref
impl Unpin for Xref
impl UnsafeUnpin for Xref
impl UnwindSafe for Xref
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