pub struct XrefStreamBuilder<'a> { /* private fields */ }Expand description
Builder for creating cross-reference streams
Implementations§
Source§impl<'a> XrefStreamBuilder<'a>
impl<'a> XrefStreamBuilder<'a>
Sourcepub fn new(xref: &'a Xref) -> XrefStreamBuilder<'a>
pub fn new(xref: &'a Xref) -> XrefStreamBuilder<'a>
Create a new builder from an Xref
Sourcepub fn entries_count(&self) -> usize
pub fn entries_count(&self) -> usize
Get the number of entries
Sourcepub fn calculate_optimal_widths(&self) -> [usize; 3]
pub fn calculate_optimal_widths(&self) -> [usize; 3]
Calculate optimal field widths based on the data
Sourcepub fn build_index_array(&self) -> Vec<Object>
pub fn build_index_array(&self) -> Vec<Object>
Build the Index array for the cross-reference stream
Sourcepub fn to_stream_object(&mut self) -> Result<Stream, Error>
pub fn to_stream_object(&mut self) -> Result<Stream, Error>
Convert to a Stream object
Auto Trait Implementations§
impl<'a> Freeze for XrefStreamBuilder<'a>
impl<'a> RefUnwindSafe for XrefStreamBuilder<'a>
impl<'a> Send for XrefStreamBuilder<'a>
impl<'a> Sync for XrefStreamBuilder<'a>
impl<'a> Unpin for XrefStreamBuilder<'a>
impl<'a> UnwindSafe for XrefStreamBuilder<'a>
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