pub struct CrossRefTable { /* private fields */ }Expand description
Cross-reference table that maps object numbers to their locations.
Implementations§
Source§impl CrossRefTable
impl CrossRefTable
Sourcepub fn set_trailer(&mut self, trailer: HashMap<String, Object>)
pub fn set_trailer(&mut self, trailer: HashMap<String, Object>)
Set the trailer dictionary.
Sourcepub fn trailer(&self) -> Option<&HashMap<String, Object>>
pub fn trailer(&self) -> Option<&HashMap<String, Object>>
Get the trailer dictionary if present.
Sourcepub fn add_entry(&mut self, object_number: u32, entry: XRefEntry)
pub fn add_entry(&mut self, object_number: u32, entry: XRefEntry)
Add an entry to the cross-reference table.
Sourcepub fn contains(&self, object_number: u32) -> bool
pub fn contains(&self, object_number: u32) -> bool
Check if an object exists in the xref table.
Sourcepub fn all_object_numbers(&self) -> impl Iterator<Item = u32> + '_
pub fn all_object_numbers(&self) -> impl Iterator<Item = u32> + '_
Get all object numbers in the table.
Sourcepub fn merge_from(&mut self, other: CrossRefTable)
pub fn merge_from(&mut self, other: CrossRefTable)
Merge entries from another xref table.
Entries in self override entries in other (for incremental updates). This is used when following /Prev pointers in the trailer.
Trait Implementations§
Source§impl Clone for CrossRefTable
impl Clone for CrossRefTable
Source§fn clone(&self) -> CrossRefTable
fn clone(&self) -> CrossRefTable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CrossRefTable
impl Debug for CrossRefTable
Auto Trait Implementations§
impl Freeze for CrossRefTable
impl RefUnwindSafe for CrossRefTable
impl Send for CrossRefTable
impl Sync for CrossRefTable
impl Unpin for CrossRefTable
impl UnwindSafe for CrossRefTable
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