Enum glass::ast::ASTLiteral [] [src]

pub enum ASTLiteral {
    String(String),
    Number(i32),
    Name(String),
    Comment(String),
    Null(),
}

Variants

Trait Implementations

impl Debug for ASTLiteral
[src]

[src]

Formats the value using the given formatter.

impl Clone for ASTLiteral
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for ASTLiteral
[src]

[src]

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

[src]

This method tests for !=.

impl From<Token> for ASTLiteral
[src]

[src]

Performs the conversion.

impl PartialEq<&'static str> for ASTLiteral
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialEq<i32> for ASTLiteral
[src]

[src]

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

1.0.0
[src]

This method tests for !=.