pub enum Token {
}Expand description
A PDF token produced by the tokenizer.
Variants§
Integer(i64)
An integer literal.
Real(f64)
A real (floating-point) literal.
String(PdfString)
A string literal (parenthesis-delimited or hex).
Name(Name)
A name object (/SomeName).
Boolean(bool)
A boolean true or false.
Null
The null keyword.
ArrayStart
Start of array [.
ArrayEnd
End of array ].
DictStart
Start of dictionary <<.
DictEnd
End of dictionary >>.
Ref(ObjectId)
An indirect reference N G R.
Keyword(Vec<u8>)
A keyword (e.g., obj, endobj, stream, endstream, xref, trailer).
Comment(Vec<u8>)
A comment % ....
Trait Implementations§
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnsafeUnpin for Token
impl UnwindSafe for Token
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