pub type TomlElementType = TomlTokenKind;Expand description
Alias for TomlTokenKind to conform to Oak’s naming conventions for element types.
Aliased Type§
pub enum TomlElementType {
Show 27 variants
Whitespace,
Newline,
Comment,
String,
BasicString,
LiteralString,
Integer,
Float,
Boolean,
OffsetDateTime,
LocalDateTime,
LocalDate,
LocalTime,
Identifier,
BareKey,
Equal,
Dot,
Comma,
LeftBrace,
RightBrace,
LeftBracket,
RightBracket,
DoubleLeftBracket,
DoubleRightBracket,
Error,
Eof,
Root,
}Variants§
Whitespace
Spaces, tabs, and other non-newline whitespace.
Newline
Newline characters (\n or \r\n).
Comment
TOML comments starting with #.
String
A generic string literal.
BasicString
A basic string with escape sequences (surrounded by “).
LiteralString
A literal string without escape sequences (surrounded by ’).
Integer
An integer literal.
Float
A floating-point literal.
Boolean
A boolean literal (true or false).
OffsetDateTime
An RFC 3339 offset date-time.
LocalDateTime
A local date-time without offset.
LocalDate
A local date without time.
LocalTime
A local time without date.
Identifier
A generic identifier.
BareKey
A bare key used in key-value pairs.
Equal
The equals sign (=) used for assignment.
Dot
The dot (.) used for nested keys.
Comma
The comma (,) used as a separator in arrays or inline tables.
LeftBrace
The left brace ({) for inline tables.
RightBrace
The right brace (}) for inline tables.
LeftBracket
The left bracket ([) for arrays or tables.
RightBracket
The right bracket (]) for arrays or tables.
DoubleLeftBracket
Double left brackets ([[) for array of tables.
DoubleRightBracket
Double right brackets (]]) for array of tables.
Error
Represents a lexing error.
Eof
Represents the end of the source stream.
Root
Represents the root of the TOML document.