[][src]Enum ress::tokens::Boolean

pub enum Boolean {
    True,
    False,
}

The tokenized representation of true or false

Variants

True
False

Methods

impl Boolean[src]

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

Test if this instance represents true

impl Boolean[src]

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

Create a Boolean from raw text

Trait Implementations

impl Into<String> for Boolean[src]

fn into(self) -> String[src]

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

impl Into<bool> for Boolean[src]

fn into(self) -> bool[src]

Creates a Rust bool for a js bool

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

fn into(self) -> bool[src]

Creates a js bool for a rust bool

impl Clone for Boolean[src]

impl PartialEq<Boolean> for Boolean[src]

impl From<bool> for Boolean[src]

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

Creates a JS Bool for a rust bool

impl Copy for Boolean[src]

impl ToString for Boolean[src]

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

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

impl Debug for Boolean[src]

Auto Trait Implementations

impl Send for Boolean

impl Unpin for Boolean

impl Sync for Boolean

impl UnwindSafe for Boolean

impl RefUnwindSafe for Boolean

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> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[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]