Struct rutie::Boolean[][src]

pub struct Boolean { /* fields omitted */ }

TrueClass and FalseClass

Implementations

impl Boolean[src]

pub fn new(state: bool) -> Self[src]

Creates a new instance boolean value from bool.

Examples

use rutie::{Boolean, VM};

assert_eq!(Boolean::new(true).to_bool(), true);

Ruby:

true == true

pub fn to_bool(&self) -> bool[src]

Retrieves a bool value from Boolean.

Examples

use rutie::{Boolean, VM};

assert_eq!(Boolean::new(true).to_bool(), true);

Ruby:

true == true

Trait Implementations

impl Debug for Boolean[src]

impl From<Value> for Boolean[src]

impl Into<AnyObject> for Boolean[src]

impl Into<Value> for Boolean[src]

impl Object for Boolean[src]

impl PartialEq<Boolean> for Boolean[src]

impl VerifiedObject for Boolean[src]

Auto Trait Implementations

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, 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.