#[non_exhaustive]pub enum PrimitiveKind {
Expandable,
Assignment,
Math,
Layout,
Resource,
Extension,
Other,
}Expand description
Coarse category of a primitive’s runtime behavior.
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.
Expandable
Primitive that expands during tokenization.
Assignment
Primitive that performs a variable or register assignment.
Math
Math mode primitive.
Layout
Box and list construction.
Resource
Resource loading such as \input.
Extension
XeTeX extension primitive.
Other
Catch-all for primitives that do not fit any other category.
Trait Implementations§
Source§impl Clone for PrimitiveKind
impl Clone for PrimitiveKind
Source§fn clone(&self) -> PrimitiveKind
fn clone(&self) -> PrimitiveKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PrimitiveKind
Source§impl Debug for PrimitiveKind
impl Debug for PrimitiveKind
Source§impl Default for PrimitiveKind
impl Default for PrimitiveKind
Source§fn default() -> PrimitiveKind
fn default() -> PrimitiveKind
Returns the “default value” for a type. Read more
impl Eq for PrimitiveKind
Source§impl PartialEq for PrimitiveKind
impl PartialEq for PrimitiveKind
Source§fn eq(&self, other: &PrimitiveKind) -> bool
fn eq(&self, other: &PrimitiveKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PrimitiveKind
Auto Trait Implementations§
impl Freeze for PrimitiveKind
impl RefUnwindSafe for PrimitiveKind
impl Send for PrimitiveKind
impl Sync for PrimitiveKind
impl Unpin for PrimitiveKind
impl UnsafeUnpin for PrimitiveKind
impl UnwindSafe for PrimitiveKind
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