pub enum DiagnosticKind {
}Expand description
What was repaired or tolerated.
Variants§
JunkBeforeHeader
Bytes precede the %PDF- header.
MissingHeader
No usable header; the file was read anyway.
BadStartxref
startxref was missing or pointed at no xref.
BadXrefSection
An xref section could not be parsed and was skipped.
BadXrefEntry
An xref entry pointed at the wrong place; the object was found by scan.
XrefRebuilt
The xref was rebuilt by scanning the file for objects.
TrailerRecovered
The trailer was missing and was recovered from elsewhere.
XrefLoop
A /Prev chain revisited a section or was cut at the limit.
BadStreamLength
A stream’s /Length was wrong; its end was found by endstream.
MissingEndobj
An object had no endobj.
ObjectIdMismatch
The object at an xref offset had a different number or generation.
TruncatedStream
A filter failed part-way; the bytes decoded before it are kept.
UnknownFilter(Vec<u8>)
An unknown or unsupported filter; the stream is left encoded.
SyntaxError
A syntax error inside an object was skipped over.
BadPageTree
A broken or cyclic page tree node was skipped.
PagesRecovered
The page tree was unusable and pages were found by scanning objects.
Other(String)
Something else, described in the message.
Trait Implementations§
Source§impl Clone for DiagnosticKind
impl Clone for DiagnosticKind
Source§fn clone(&self) -> DiagnosticKind
fn clone(&self) -> DiagnosticKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more