pub struct PdfCrossRefSection { /* private fields */ }Expand description
A PDF cross-reference section.
Entries should be added in order of ascending object number.
Implementations§
Source§impl PdfCrossRefSection
impl PdfCrossRefSection
Sourcepub fn create() -> Self
pub fn create() -> Self
Create a new cross-reference section with the standard first entry (0 65535 f).
Sourcepub fn create_empty() -> Self
pub fn create_empty() -> Self
Create an empty cross-reference section with no entries.
Sourcepub fn add_deleted_entry(
&mut self,
pdf_ref: PdfRef,
next_free_object_number: u64,
)
pub fn add_deleted_entry( &mut self, pdf_ref: PdfRef, next_free_object_number: u64, )
Add a deleted (free) entry.
Trait Implementations§
Source§impl Clone for PdfCrossRefSection
impl Clone for PdfCrossRefSection
Source§fn clone(&self) -> PdfCrossRefSection
fn clone(&self) -> PdfCrossRefSection
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 PdfCrossRefSection
impl Debug for PdfCrossRefSection
Source§impl Display for PdfCrossRefSection
impl Display for PdfCrossRefSection
Source§impl PdfObjectTrait for PdfCrossRefSection
impl PdfObjectTrait for PdfCrossRefSection
Source§fn size_in_bytes(&self) -> usize
fn size_in_bytes(&self) -> usize
Return the size in bytes when serialized.
Auto Trait Implementations§
impl Freeze for PdfCrossRefSection
impl RefUnwindSafe for PdfCrossRefSection
impl Send for PdfCrossRefSection
impl Sync for PdfCrossRefSection
impl Unpin for PdfCrossRefSection
impl UnsafeUnpin for PdfCrossRefSection
impl UnwindSafe for PdfCrossRefSection
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