#[non_exhaustive]pub enum ContentTokenKind {
Operand(Object),
Operator,
InlineImage {
params: Dict,
data: ByteSpan,
},
}Expand description
Content-token classification.
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.
Operand(Object)
A complete operand: any direct object (scalar, array,
dictionary), fully assembled. The span covers the whole
composite ([ through ]).
Operator
An operator keyword (q, cm, Tj, … — also any
unrecognized keyword; recognizing is the interpreter’s job).
The bytes are the span.
InlineImage
A complete BI … ID … EI inline image (§8.9.7), as ONE token
(they’re a single indivisible graphics object; span covers
BI through EI inclusive).
Trait Implementations§
Source§impl Clone for ContentTokenKind
impl Clone for ContentTokenKind
Source§impl Debug for ContentTokenKind
impl Debug for ContentTokenKind
Source§impl PartialEq for ContentTokenKind
impl PartialEq for ContentTokenKind
impl StructuralPartialEq for ContentTokenKind
Auto Trait Implementations§
impl Forget for ContentTokenKind
impl Freeze for ContentTokenKind
impl Move for ContentTokenKind
impl RefUnwindSafe for ContentTokenKind
impl Send for ContentTokenKind
impl Sync for ContentTokenKind
impl Unpin for ContentTokenKind
impl UnsafeUnpin for ContentTokenKind
impl UnwindSafe for ContentTokenKind
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