pub enum TeXCommand<ET: EngineTypes> {
Macro(Macro<ET::Token>),
Char {
char: ET::Char,
code: CommandCode,
},
CharDef(ET::Char),
MathChar(u32),
Font(<ET::FontSystem as FontSystem>::Font),
IntRegister(usize),
DimRegister(usize),
SkipRegister(usize),
MuSkipRegister(usize),
ToksRegister(usize),
Primitive {
name: PrimitiveIdentifier,
cmd: PrimitiveCommand<ET>,
},
}Expand description
A command.
Variants§
Macro(Macro<ET::Token>)
Char
A character with the given CommandCode; e.g. the result of \let\foo={.
CharDef(ET::Char)
A character defined via \chardef\foo....
MathChar(u32)
A math character defined via \mathchardef\foo....
Font(<ET::FontSystem as FontSystem>::Font)
A font defined via \font\foo....
IntRegister(usize)
An integer register defined via \countdef\foo....
DimRegister(usize)
A dimension register defined via \dimendef\foo....
SkipRegister(usize)
A skip register defined via \skipdef\foo....
MuSkipRegister(usize)
A muskip register defined via \muskipdef\foo....
ToksRegister(usize)
A token register defined via \toksdef\foo....
Primitive
A primitive command, e.g. \relax, \endgroup, \count etc.
Implementations§
Source§impl<ET: EngineTypes> TeXCommand<ET>
impl<ET: EngineTypes> TeXCommand<ET>
Trait Implementations§
Source§impl<ET: Clone + EngineTypes> Clone for TeXCommand<ET>
impl<ET: Clone + EngineTypes> Clone for TeXCommand<ET>
Source§fn clone(&self) -> TeXCommand<ET>
fn clone(&self) -> TeXCommand<ET>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<ET> Freeze for TeXCommand<ET>
impl<ET> RefUnwindSafe for TeXCommand<ET>where
<ET as EngineTypes>::Char: RefUnwindSafe,
<ET as EngineTypes>::Font: RefUnwindSafe,
<ET as EngineTypes>::Token: RefUnwindSafe,
impl<ET> Send for TeXCommand<ET>
impl<ET> Sync for TeXCommand<ET>
impl<ET> Unpin for TeXCommand<ET>where
<ET as EngineTypes>::Char: Unpin,
<ET as EngineTypes>::Font: Unpin,
<ET as EngineTypes>::Token: Unpin,
impl<ET> UnsafeUnpin for TeXCommand<ET>
impl<ET> UnwindSafe for TeXCommand<ET>where
<ET as EngineTypes>::Char: UnwindSafe,
<ET as EngineTypes>::Font: UnwindSafe,
<ET as EngineTypes>::Token: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more