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

pub enum Boolean {
    True,
    False,
}

The tokenized representation of true or false

Variants

True
False

Implementations

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 Clone for Boolean[src]

impl Copy for Boolean[src]

impl Debug for Boolean[src]

impl From<bool> for Boolean[src]

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

Creates a JS Bool for a rust bool

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

impl StructuralPartialEq 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

Auto Trait Implementations

impl RefUnwindSafe for Boolean

impl Send for Boolean

impl Sync for Boolean

impl Unpin for Boolean

impl UnwindSafe for Boolean

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.