Enum json_tools::TokenType
[−]
[src]
pub enum TokenType {
CurlyOpen,
CurlyClose,
BracketOpen,
BracketClose,
Colon,
Comma,
String,
BooleanTrue,
BooleanFalse,
Number,
Null,
Invalid,
}Variants
CurlyOpen{
CurlyClose}
BracketOpen[
BracketClose]
Colon:
Comma,
StringA json string , like "foo"
BooleanTruetrue
BooleanFalsefalse
NumberA Number, like 1.1234 or 123 or -0.0 or -1 or .0 or .
Nullany json number, like 1.24123 or 123
null
InvalidThe 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]
impl PartialEq for TokenType[src]
fn eq(&self, __arg_0: &TokenType) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Clone for TokenType[src]
fn clone(&self) -> TokenType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more