pub enum XrefEntry {
Free {
next: u32,
generation: u16,
},
InUse {
offset: u64,
generation: u16,
},
Compressed {
obj_stream_id: u32,
index_within_stream: u32,
},
}Expand description
One slot in the cross-reference table (§7.5.4 Table 18 for plain
xref; §7.5.8 Table 18 for the XRef-stream form which adds
Compressed).
Variants§
Free
Free entry — points to the next free object via next and
carries the generation number to use if the slot is reused.
The head-of-list 0 65535 f is the only Free we ever
expect to encounter in writer-generated PDFs.
InUse
In-use entry — the indirect object is at offset bytes from
the start of the file, with the given generation number.
Compressed
Type 2 entry from an XRef stream — the object lives inside an
object-stream container at obj_stream_id, occupying the slot
at index_within_stream. The reader doesn’t yet decode object
streams (PDF 1.5+ /Type /ObjStm), but recording the entry
keeps the xref shape lossless.
Trait Implementations§
impl Copy for XrefEntry
impl Eq for XrefEntry
impl StructuralPartialEq for XrefEntry
Auto Trait Implementations§
impl Freeze for XrefEntry
impl RefUnwindSafe for XrefEntry
impl Send for XrefEntry
impl Sync for XrefEntry
impl Unpin for XrefEntry
impl UnsafeUnpin for XrefEntry
impl UnwindSafe for XrefEntry
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