pub enum Syntax {
Show 14 variants
Header,
Token,
End,
Number,
Name,
String,
Dictionary,
Stream,
Object,
CrossReference,
StartXref,
Trailer,
Container,
Cycle,
}Expand description
A concrete PDF grammar or document-structure violation.
Variants§
Header
Missing or malformed file header.
Token
Unexpected token for the selected grammar.
End
Value or delimiter extends beyond its original source.
Number
Invalid integer or real spelling.
Name
Invalid name escape or forbidden zero byte.
String
Invalid literal or hexadecimal string.
Dictionary
Invalid dictionary entry or conflicting duplicate key.
Stream
Invalid stream extent, encoding or decoding parameters.
Object
Invalid indirect object definition or reference identity.
CrossReference
Invalid cross-reference section or object location.
StartXref
Invalid terminal startxref record.
Trailer
Invalid document trailer.
Container
The carried signature container has the wrong format or extent.
Cycle
Reference or cross-reference chain returns to itself.
Trait Implementations§
impl Copy for Syntax
impl Eq for Syntax
impl StructuralPartialEq for Syntax
Auto Trait Implementations§
impl Forget for Syntax
impl Freeze for Syntax
impl RefUnwindSafe for Syntax
impl Send for Syntax
impl Sync for Syntax
impl Unpin for Syntax
impl UnsafeUnpin for Syntax
impl UnwindSafe for Syntax
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