Enum ress::Boolean[][src]

pub enum Boolean {
    True,
    False,
}

The tokenized representation of true or false

Variants

Methods

impl BooleanLiteral
[src]

Test if this instance represents true

Trait Implementations

impl Debug for BooleanLiteral
[src]

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> From<&'a str> for BooleanLiteral
[src]

Create a BooleanLiteral from raw text

panics if argument is not true or false

impl From<String> for BooleanLiteral
[src]

Create a BooleanLiteral from raw text

panics if argument is not true or false

impl From<bool> for BooleanLiteral
[src]

Creates a JS Bool for a rust bool

impl Into<String> for BooleanLiteral
[src]

Return this BooleanLiteral to the text that was parsed to create it

impl ToString for BooleanLiteral
[src]

Return this BooleanLiteral to the text that was parsed to create it

impl Into<bool> for BooleanLiteral
[src]

Creates a Rust bool for a js bool

impl<'a> Into<bool> for &'a BooleanLiteral
[src]

Creates a js bool for a rust bool

Auto Trait Implementations

impl Send for Boolean

impl Sync for Boolean