[][src]Enum ress::tokens::BooleanLiteral

pub enum BooleanLiteral {
    True,
    False,
}

The tokenized representation of true or false

Variants

TrueFalse

Methods

impl BooleanLiteral[src]

pub fn is_true(self) -> bool[src]

Test if this instance represents true

Trait Implementations

impl Clone for BooleanLiteral[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Into<String> for BooleanLiteral[src]

fn into(self) -> String[src]

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

impl Into<bool> for BooleanLiteral[src]

fn into(self) -> bool[src]

Creates a Rust bool for a js bool

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

fn into(self) -> bool[src]

Creates a js bool for a rust bool

impl Copy for BooleanLiteral[src]

impl PartialEq<BooleanLiteral> for BooleanLiteral[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl ToString for BooleanLiteral[src]

fn to_string(&self) -> String[src]

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

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

fn from(s: &'a str) -> Self[src]

Create a BooleanLiteral from raw text

panics if argument is not true or false

impl From<String> for BooleanLiteral[src]

fn from(s: String) -> Self[src]

Create a BooleanLiteral from raw text

panics if argument is not true or false

impl From<bool> for BooleanLiteral[src]

fn from(b: bool) -> Self[src]

Creates a JS Bool for a rust bool

impl Debug for BooleanLiteral[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]