Enum json_tools::TokenType [] [src]

pub enum TokenType {
    CurlyOpen,
    CurlyClose,
    BracketOpen,
    BracketClose,
    Colon,
    Comma,
    String,
    BooleanTrue,
    BooleanFalse,
    Number,
    Null,
    Invalid,
}

Variants

{

}

[

]

:

,

A json string , like "foo"

true

false

A Number, like 1.1234 or 123 or -0.0 or -1 or .0 or .

any json number, like 1.24123 or 123 null

The type of the token could not be identified. Should be removed if this lexer is ever to be feature complete

Trait Implementations

impl Debug for TokenType
[src]

Formats the value using the given formatter.

impl PartialEq for TokenType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for TokenType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl AsRef<str> for TokenType
[src]

Performs the conversion.