#[repr(u16)]pub enum TomlKind {
Show 35 variants
CommentText = 0,
Integer = 1,
Bool = 2,
Ident = 3,
SingleQuote = 4,
DoubleQuote = 5,
TripleQuote = 6,
Plus = 7,
Minus = 8,
Equal = 9,
Hash = 10,
Dot = 11,
Comma = 12,
Colon = 13,
OpenCurly = 14,
CloseCurly = 15,
OpenBrace = 16,
CloseBrace = 17,
Whitespace = 18,
EoF = 19,
Table = 20,
Heading = 21,
ArrayHeading = 22,
SegIdent = 23,
InlineTable = 24,
KeyValue = 25,
Key = 26,
Value = 27,
Array = 28,
ArrayItem = 29,
Date = 30,
Float = 31,
Str = 32,
Comment = 33,
Root = 34,
}
Variants§
CommentText = 0
the text of a comment.
Integer = 1
A signed 64 bit number.
Bool = 2
True or false.
Ident = 3
The token when a key is not surrounded by quotes.
SingleQuote = 4
Single quote.
DoubleQuote = 5
Double quote, used for keys and strings.
TripleQuote = 6
Triple quote, used for literal strings.
Plus = 7
+
Minus = 8
-
Equal = 9
=
Hash = 10
#
Dot = 11
,
Comma = 12
,
Colon = 13
:
OpenCurly = 14
opening brace {
.
CloseCurly = 15
closing brace }
.
OpenBrace = 16
opening brace [
.
CloseBrace = 17
closing brace ]
.
Whitespace = 18
All whitespace tokens, newline, indent, space and tab are all represented by this token.
EoF = 19
End of file token.
Table = 20
Heading = 21
A table heading surounded by brackets.
ArrayHeading = 22
An array of tables heading
SegIdent = 23
A segmented Heading
Ident.
InlineTable = 24
An inline table where the key is the “heading” and key value pairs inside of curly braces.
KeyValue = 25
A key and a value, any other valid toml type.
Key = 26
A key either Ident
or double quoted.
Value = 27
Any valid toml type after a key.
Array = 28
A toml array.
ArrayItem = 29
Date = 30
Toml date TODO this is one of with offset, without, local, time, date and datetime.
Float = 31
A toml table consisting of a heading and key value pairs. An signed 64 bit EEE 754-2008 “binary64” number.
Str = 32
One of three string types, literal single quote, normal double quote and literal triple double quote. (like python doc comments)
Comment = 33
A comment in the toml file, a Hash
token followed by CommentText
.
Root = 34
the “empty” root node representing a whole file.