[][src]Enum toml_parse::TomlKind

#[repr(u16)]
pub enum TomlKind {
    CommentText,
    Integer,
    Bool,
    Ident,
    SingleQuote,
    DoubleQuote,
    TripleQuote,
    Plus,
    Minus,
    Equal,
    Hash,
    Dot,
    Comma,
    Colon,
    OpenCurly,
    CloseCurly,
    OpenBrace,
    CloseBrace,
    Whitespace,
    EoF,
    Table,
    Heading,
    ArrayHeading,
    SegIdent,
    InlineTable,
    KeyValue,
    Key,
    Value,
    Array,
    ArrayItem,
    Date,
    Float,
    Str,
    Comment,
    Root,
}

Variants

CommentText

the text of a comment.

Integer

A signed 64 bit number.

Bool

True or false.

Ident

The token when a key is not surrounded by quotes.

SingleQuote

Single quote.

DoubleQuote

Double quote, used for keys and strings.

TripleQuote

Triple quote, used for literal strings.

Plus

+

Minus

-

Equal

=

Hash

#

Dot

,

Comma

,

Colon

:

OpenCurly

opening brace {.

CloseCurly

closing brace }.

OpenBrace

opening brace [.

CloseBrace

closing brace ].

Whitespace

All whitespace tokens, newline, indent, space and tab are all represented by this token.

EoF

End of file token.

Table
Heading

A table heading surounded by brackets.

ArrayHeading

An array of tables heading

SegIdent

A segmented Heading Ident.

InlineTable

An inline table where the key is the "heading" and key value pairs inside of curly braces.

KeyValue

A key and a value, any other valid toml type.

Key

A key either Ident or double quoted.

Value

Any valid toml type after a key.

Array

A toml array.

ArrayItem
Date

Toml date TODO this is one of with offset, without, local, time, date and datetime.

Float

A toml table consisting of a heading and key value pairs. An signed 64 bit EEE 754-2008 "binary64" number.

Str

One of three string types, literal single quote, normal double quote and literal triple double quote. (like python doc comments)

Comment

A comment in the toml file, a Hash token followed by CommentText.

Root

the "empty" root node representing a whole file.

Trait Implementations

impl Clone for TomlKind[src]

impl Copy for TomlKind[src]

impl Debug for TomlKind[src]

impl Eq for TomlKind[src]

impl From<TomlKind> for SyntaxKind[src]

impl Hash for TomlKind[src]

impl Ord for TomlKind[src]

impl PartialEq<TomlKind> for TomlKind[src]

impl PartialOrd<TomlKind> for TomlKind[src]

impl StructuralEq for TomlKind[src]

impl StructuralPartialEq for TomlKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.