Struct json_tools::Token [] [src]

pub struct Token {
    pub kind: TokenType,
    pub buf: Buffer,
}

A lexical token, identifying its kind and span.

Fields

The exact type of the token

A buffer representing the bytes of this Token.

Trait Implementations

impl Debug for Token
[src]

Formats the value using the given formatter.

impl PartialEq for Token
[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 Token
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more