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 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_stream_content(&mut self) -> Result<Vec<u8>>
pub fn build_stream_content(&mut self) -> Result<Vec<u8>>
Build the stream content
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>
pub fn to_stream_object(&mut self) -> Result<Stream>
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> UnsafeUnpin 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
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