#[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 ContentTokenKindwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Object>: Freeze,
PhantomData<(Name, Object)>: Freeze,
impl Move for ContentTokenKind
impl RefUnwindSafe for ContentTokenKind
impl Send for ContentTokenKindwhere
RawVecInner: Send,
impl Sync for ContentTokenKindwhere
RawVecInner: Sync,
impl Unpin for ContentTokenKind
impl UnsafeUnpin for ContentTokenKindwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Object>: UnsafeUnpin,
PhantomData<(Name, Object)>: UnsafeUnpin,
impl UnwindSafe for ContentTokenKindwhere
RawVecInner: UnwindSafe,
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