#[repr(u8)]pub enum TexElementType {
Show 163 variants
Root = 0,
SourceFile = 1,
Document = 2,
Command = 3,
Environment = 4,
BeginEnvironment = 5,
EndEnvironment = 6,
MathMode = 7,
InlineMath = 8,
DisplayMath = 9,
Group = 10,
Superscript = 11,
Subscript = 12,
Argument = 13,
OptionalArgument = 14,
MandatoryArgument = 15,
Text = 16,
Paragraph = 17,
Section = 18,
Subsection = 19,
Subsubsection = 20,
List = 21,
Item = 22,
Table = 23,
Row = 24,
Cell = 25,
Label = 26,
Reference = 27,
Citation = 28,
Figure = 29,
Caption = 30,
Error = 31,
DocumentClass = 32,
UsePackage = 33,
Begin = 34,
End = 35,
Section_ = 36,
Subsection_ = 37,
Subsubsection_ = 38,
Chapter = 39,
Part = 40,
Title = 41,
Author = 42,
Date = 43,
MakeTitle = 44,
TableOfContents = 45,
NewPage = 46,
ClearPage = 47,
Frac = 48,
Sqrt = 49,
Sum = 50,
Int = 51,
Lim = 52,
Alpha = 53,
Beta = 54,
Gamma = 55,
Delta = 56,
Epsilon = 57,
Zeta = 58,
Eta = 59,
Theta = 60,
Iota = 61,
Kappa = 62,
Lambda = 63,
Mu = 64,
Nu = 65,
Xi = 66,
Omicron = 67,
Pi = 68,
Rho = 69,
Sigma = 70,
Tau = 71,
Upsilon = 72,
Phi = 73,
Chi = 74,
Psi = 75,
Omega = 76,
VarEpsilon = 77,
VarTheta = 78,
VarKappa = 79,
VarPi = 80,
VarRho = 81,
VarSigma = 82,
VarPhi = 83,
UpperGamma = 84,
UpperDelta = 85,
UpperTheta = 86,
UpperLambda = 87,
UpperXi = 88,
UpperPi = 89,
UpperSigma = 90,
UpperUpsilon = 91,
UpperPhi = 92,
UpperPsi = 93,
UpperOmega = 94,
TextBf = 95,
TextIt = 96,
TextSc = 97,
TextTt = 98,
Emph = 99,
Underline = 100,
Identifier = 101,
StringLiteral = 102,
Number = 103,
Backslash = 104,
LeftBrace = 105,
RightBrace = 106,
LeftBracket = 107,
RightBracket = 108,
LeftParen = 109,
RightParen = 110,
Dollar = 111,
DoubleDollar = 112,
Ampersand = 113,
Percent = 114,
Hash = 115,
Caret = 116,
Underscore = 117,
Tilde = 118,
Equal = 119,
Equals = 120,
Plus = 121,
Minus = 122,
Star = 123,
Slash = 124,
Pipe = 125,
Less = 126,
LessThan = 127,
Greater = 128,
GreaterThan = 129,
Exclamation = 130,
Question = 131,
At = 132,
Colon = 133,
Semicolon = 134,
Comma = 135,
Dot = 136,
Comment = 137,
Whitespace = 138,
Newline = 139,
BeginKeyword = 140,
EndKeyword = 141,
DocumentclassKeyword = 142,
UsepackageKeyword = 143,
SectionKeyword = 144,
SubsectionKeyword = 145,
SubsubsectionKeyword = 146,
ChapterKeyword = 147,
PartKeyword = 148,
TitleKeyword = 149,
AuthorKeyword = 150,
DateKeyword = 151,
MaketitleKeyword = 152,
TableofcontentsKeyword = 153,
ItemKeyword = 154,
LabelKeyword = 155,
RefKeyword = 156,
CiteKeyword = 157,
IncludegraphicsKeyword = 158,
TextbfKeyword = 159,
TextitKeyword = 160,
EmphKeyword = 161,
Eof = 162,
}Variants§
Root = 0
SourceFile = 1
Document = 2
Command = 3
Environment = 4
BeginEnvironment = 5
EndEnvironment = 6
MathMode = 7
InlineMath = 8
DisplayMath = 9
Group = 10
Superscript = 11
Subscript = 12
Argument = 13
OptionalArgument = 14
MandatoryArgument = 15
Text = 16
Paragraph = 17
Section = 18
Subsection = 19
Subsubsection = 20
List = 21
Item = 22
Table = 23
Row = 24
Cell = 25
Label = 26
Reference = 27
Citation = 28
Figure = 29
Caption = 30
Error = 31
DocumentClass = 32
UsePackage = 33
Begin = 34
End = 35
Section_ = 36
Subsection_ = 37
Subsubsection_ = 38
Chapter = 39
Part = 40
Title = 41
Author = 42
Date = 43
MakeTitle = 44
TableOfContents = 45
NewPage = 46
ClearPage = 47
Frac = 48
Sqrt = 49
Sum = 50
Int = 51
Lim = 52
Alpha = 53
Beta = 54
Gamma = 55
Delta = 56
Epsilon = 57
Zeta = 58
Eta = 59
Theta = 60
Iota = 61
Kappa = 62
Lambda = 63
Mu = 64
Nu = 65
Xi = 66
Omicron = 67
Pi = 68
Rho = 69
Sigma = 70
Tau = 71
Upsilon = 72
Phi = 73
Chi = 74
Psi = 75
Omega = 76
VarEpsilon = 77
VarTheta = 78
VarKappa = 79
VarPi = 80
VarRho = 81
VarSigma = 82
VarPhi = 83
UpperGamma = 84
UpperDelta = 85
UpperTheta = 86
UpperLambda = 87
UpperXi = 88
UpperPi = 89
UpperSigma = 90
UpperUpsilon = 91
UpperPhi = 92
UpperPsi = 93
UpperOmega = 94
TextBf = 95
TextIt = 96
TextSc = 97
TextTt = 98
Emph = 99
Underline = 100
Identifier = 101
StringLiteral = 102
Number = 103
Backslash = 104
LeftBrace = 105
RightBrace = 106
LeftBracket = 107
RightBracket = 108
LeftParen = 109
RightParen = 110
Dollar = 111
DoubleDollar = 112
Ampersand = 113
Percent = 114
Hash = 115
Caret = 116
Underscore = 117
Tilde = 118
Equal = 119
Equals = 120
Plus = 121
Minus = 122
Star = 123
Slash = 124
Pipe = 125
Less = 126
LessThan = 127
Greater = 128
GreaterThan = 129
Exclamation = 130
Question = 131
At = 132
Colon = 133
Semicolon = 134
Comma = 135
Dot = 136
Comment = 137
Whitespace = 138
Newline = 139
BeginKeyword = 140
EndKeyword = 141
DocumentclassKeyword = 142
UsepackageKeyword = 143
SectionKeyword = 144
SubsectionKeyword = 145
SubsubsectionKeyword = 146
ChapterKeyword = 147
PartKeyword = 148
TitleKeyword = 149
AuthorKeyword = 150
DateKeyword = 151
MaketitleKeyword = 152
TableofcontentsKeyword = 153
ItemKeyword = 154
LabelKeyword = 155
RefKeyword = 156
CiteKeyword = 157
IncludegraphicsKeyword = 158
TextbfKeyword = 159
TextitKeyword = 160
EmphKeyword = 161
Eof = 162
Trait Implementations§
Source§impl Clone for TexElementType
impl Clone for TexElementType
Source§fn clone(&self) -> TexElementType
fn clone(&self) -> TexElementType
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 moreSource§impl Debug for TexElementType
impl Debug for TexElementType
Source§impl<'de> Deserialize<'de> for TexElementType
impl<'de> Deserialize<'de> for TexElementType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ElementType for TexElementType
impl ElementType for TexElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<TexElementType> for TexTokenType
impl From<TexElementType> for TexTokenType
Source§fn from(element: TexElementType) -> Self
fn from(element: TexElementType) -> Self
Converts to this type from the input type.
Source§impl From<TexTokenType> for TexElementType
impl From<TexTokenType> for TexElementType
Source§fn from(token: TexTokenType) -> Self
fn from(token: TexTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for TexElementType
impl Hash for TexElementType
Source§impl PartialEq for TexElementType
impl PartialEq for TexElementType
Source§impl Serialize for TexElementType
impl Serialize for TexElementType
Source§impl TokenType for TexElementType
impl TokenType for TexElementType
Source§const END_OF_STREAM: Self = Self::Eof
const END_OF_STREAM: Self = Self::Eof
A constant representing the end of the input stream. Read more
Source§type Role = UniversalTokenRole
type Role = UniversalTokenRole
The associated role type for this token kind.
Source§fn is_ignored(&self) -> bool
fn is_ignored(&self) -> bool
Returns true if this token represents trivia (whitespace, comments, etc.). Read more
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this token matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalTokenRole) -> bool
fn is_universal(&self, role: UniversalTokenRole) -> bool
Returns true if this token matches the specified universal role.
Source§fn is_comment(&self) -> bool
fn is_comment(&self) -> bool
Returns true if this token represents a comment. Read more
Source§fn is_whitespace(&self) -> bool
fn is_whitespace(&self) -> bool
Returns true if this token represents whitespace. Read more
Source§fn is_error(&self) -> bool
fn is_error(&self) -> bool
Returns true if this token represents an error condition. Read more
Source§fn is_end_of_stream(&self) -> bool
fn is_end_of_stream(&self) -> bool
Returns true if this token represents the end of the input stream. Read more
impl Copy for TexElementType
impl Eq for TexElementType
impl StructuralPartialEq for TexElementType
Auto Trait Implementations§
impl Freeze for TexElementType
impl RefUnwindSafe for TexElementType
impl Send for TexElementType
impl Sync for TexElementType
impl Unpin for TexElementType
impl UnwindSafe for TexElementType
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