[][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

impl BooleanLiteral[src]

pub fn from(s: &str) -> Option<Self>[src]

Create a BooleanLiteral from raw text

Trait Implementations

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

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

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

impl PartialEq<BooleanLiteral> for BooleanLiteral[src]

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

This method tests for !=.

impl Copy for BooleanLiteral[src]

impl Clone for BooleanLiteral[src]

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

Performs copy-assignment from source. Read more

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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