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 Freeze for XRefTable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more