#[non_exhaustive]pub enum TrailerSource {
TrailerKeyword,
XrefStreamDict,
SynthesizedFromCatalog,
}Expand description
Where the recovered trailer’s keys came from — disclosed and counted (R20), because the operator should be able to tell a parsed trailer from a synthesized one.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TrailerKeyword
Parsed from the last trailer keyword’s dictionary (§7.5.5) — the
classic-table case, which is the dominant offset-shift shape.
XrefStreamDict
Lifted from a recovered cross-reference stream object’s own
Table 17 dictionary (§7.5.8.1). The stream’s data was unreadable
(that is why strict failed), but its dictionary — carrying /Root,
/Size, /Info, /Encrypt, /ID — parsed as an ordinary
file-level object.
SynthesizedFromCatalog
Synthesized: /Root set to a scanned /Type /Catalog object,
/Size from the highest recovered number, /ID//Encrypt//Info
lifted from any recovered cross-reference-stream dictionary found.
Trait Implementations§
Source§impl Clone for TrailerSource
impl Clone for TrailerSource
impl Copy for TrailerSource
Source§impl Debug for TrailerSource
impl Debug for TrailerSource
impl Eq for TrailerSource
Source§impl PartialEq for TrailerSource
impl PartialEq for TrailerSource
impl StructuralPartialEq for TrailerSource
Auto Trait Implementations§
impl Forget for TrailerSource
impl Freeze for TrailerSource
impl Move for TrailerSource
impl RefUnwindSafe for TrailerSource
impl Send for TrailerSource
impl Sync for TrailerSource
impl Unpin for TrailerSource
impl UnsafeUnpin for TrailerSource
impl UnwindSafe for TrailerSource
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