pub enum Token<'config> {
Show 64 variants
Eof,
Begin(Env),
End(Env),
NewColumn,
NewLine,
NoNumber,
Tag,
Left,
Right,
Middle,
SquareBracketOpen,
SquareBracketClose,
GroupBegin,
GroupEnd,
Frac(Option<FracAttr>),
Genfrac,
Underscore,
Circumflex,
Binom(Option<FracAttr>),
Overset,
Underset,
OverUnderBrace(OrdLike, bool),
Sqrt,
Integral(Op),
Limits,
PseudoOperatorLimits(&'static str),
Space(Length),
CustomSpace,
NonBreakingSpace,
Whitespace,
Transform(MathVariant),
Big(Size, Option<Class>),
OverUnder(Rel, bool, Option<OpAttr>),
Ord(OrdLike),
Op(Op),
BinaryOp(Bin),
Relation(Rel),
Open(Fence),
Close(Fence),
Punctuation(Punct),
Inner(Op),
Prime,
OpGreaterThan,
OpLessThan,
OpAmpersand,
ForceRelation(MathMLOperator),
ForceClose(MathMLOperator),
ForceBinaryOp(MathMLOperator),
Letter(char, FromAscii),
UprightLetter(char),
Digit(char),
PseudoOperator(&'static str),
Enclose(Notation),
OperatorName(bool),
Slashed,
Not,
Text(Option<HtmlTextStyle>),
Style(Style),
Color,
CustomCmdArg(u8),
CustomCmd(u8, &'config [Token<'static>]),
HardcodedMathML(&'static str),
TextModeAccent(char),
InternalStringLiteral(&'static str),
}Variants§
Eof
Begin(Env)
End(Env)
NewColumn
NewLine
NoNumber
Tag
Left
Right
Middle
SquareBracketOpen
The opening square bracket has its own token because we need to
distinguish it from \lbrack after \sqrt.
SquareBracketClose
The closing square bracket has its own token because we often
need to search for it.
Additionally, it’s useful to distinguish this from \rbrack.
GroupBegin
GroupEnd
Frac(Option<FracAttr>)
Genfrac
Underscore
Circumflex
Binom(Option<FracAttr>)
Overset
Underset
OverUnderBrace(OrdLike, bool)
Sqrt
Integral(Op)
Limits
PseudoOperatorLimits(&'static str)
Space(Length)
CustomSpace
NonBreakingSpace
Whitespace
Transform(MathVariant)
Big(Size, Option<Class>)
OverUnder(Rel, bool, Option<OpAttr>)
Ord(OrdLike)
A token corresponding to LaTeX’s “mathord” character class (class 0).
Op(Op)
A token corresponding to LaTeX’s “mathop” character class (class 1).
BinaryOp(Bin)
A token corresponding to LaTeX’s “mathbin” character class (class 2).
Relation(Rel)
A token corresponding to LaTeX’s “mathrel” character class (class 3).
Open(Fence)
A token corresponding to LaTeX’s “mathopen” character class (class 4).
Close(Fence)
A token corresponding to LaTeX’s “mathclose” character class (class 5).
Punctuation(Punct)
A token corresponding to LaTeX’s “mathpunct” character class (class 6).
Inner(Op)
A token corresponding to LaTeX’s “mathinner” character class (class I).
Prime
OpGreaterThan
OpLessThan
OpAmpersand
ForceRelation(MathMLOperator)
A token to force an operator to behave like a relation (mathrel).
This is, for example, needed for :, which in LaTeX is a relation,
but in MathML Core is a separator (punctuation).
ForceClose(MathMLOperator)
A token to force an operator to behave like a closing symbol (mathclose).
This is, for example, needed for !, which in LaTeX is a closing symbol,
but in MathML Core is an ordinary operator.
ForceBinaryOp(MathMLOperator)
A token to force an operator to behave like a binary operator (mathbin).
This is, for example, needed for ×, which in LaTeX is a binary operator,
but in MathML Core is a “big operator” (mathop).
Letter(char, FromAscii)
UprightLetter(char)
Digit(char)
PseudoOperator(&'static str)
Enclose(Notation)
OperatorName(bool)
Slashed
Not
Text(Option<HtmlTextStyle>)
Style(Style)
Color
CustomCmdArg(u8)
CustomCmd(u8, &'config [Token<'static>])
HardcodedMathML(&'static str)
TextModeAccent(char)
InternalStringLiteral(&'static str)
This token is intended to be used in predefined token streams.
It is equivalent to {abc}, but has a much more compact representation.