#[non_exhaustive]pub enum ParseFact {
Header {
offset: u64,
version: PdfVersion,
had_leading_bytes: bool,
},
PostEofData {
bytes: u64,
},
Xref {
section: ObjectLocation,
fact: XrefFact,
},
Stream {
object: ObjectKey,
fact: StreamFact,
},
Encryption {
encrypted: bool,
handler: Option<Identifier>,
version: Option<u8>,
revision: Option<u8>,
algorithm: Option<Identifier>,
decrypted: bool,
},
Xmp {
object: ObjectKey,
fact: XmpFact,
},
}Expand description
Parser fact emitted by tolerant parsing.
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.
Header
Header fact.
Fields
§
version: PdfVersionPDF version.
PostEofData
Bytes after EOF marker.
Xref
Cross-reference fact.
Stream
Stream fact.
Encryption
Encryption fact.
Fields
§
handler: Option<Identifier>Encryption handler when known.
§
algorithm: Option<Identifier>Selected object encryption algorithm when known.
Xmp
XMP metadata fact.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ParseFact
impl<'de> Deserialize<'de> for ParseFact
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ParseFact
impl StructuralPartialEq for ParseFact
Auto Trait Implementations§
impl Freeze for ParseFact
impl RefUnwindSafe for ParseFact
impl Send for ParseFact
impl Sync for ParseFact
impl Unpin for ParseFact
impl UnsafeUnpin for ParseFact
impl UnwindSafe for ParseFact
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