pub struct XRefTable { /* private fields */ }
Expand description
Runtime lookup table of all objects
Implementations§
source§impl XRefTable
impl XRefTable
pub fn new(num_objects: ObjNr) -> XRefTable
pub fn iter(&self) -> impl Iterator<Item = u32> + '_
pub fn get(&self, id: ObjNr) -> Result<XRef>
pub fn set(&mut self, id: ObjNr, r: XRef)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn push(&mut self, new_entry: XRef)
pub fn num_entries(&self) -> usize
pub fn max_field_widths(&self) -> (u64, u64)
pub fn add_entries_from(&mut self, section: XRefSection) -> Result<()>
pub fn write_stream(&self, size: usize) -> Result<Stream<XRefInfo>>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for XRefTable
impl Send for XRefTable
impl Sync for XRefTable
impl Unpin for XRefTable
impl UnwindSafe for XRefTable
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