[][src]Trait mruby::value::ValueLike

pub trait ValueLike where
    Self: Sized
{ fn inner(&self) -> mrb_value;
fn interp(&self) -> &Mrb; fn funcall<T, M, A>(&self, func: M, args: A) -> Result<T, MrbError>
    where
        T: TryFromMrb<Value, From = Ruby, To = Rust>,
        M: AsRef<str>,
        A: AsRef<[Value]>
, { ... }
fn funcall_with_block<T, M, A>(
        &self,
        func: M,
        args: A,
        block: Value
    ) -> Result<T, MrbError>
    where
        T: TryFromMrb<Value, From = Ruby, To = Rust>,
        M: AsRef<str>,
        A: AsRef<[Value]>
, { ... }
fn respond_to(&self, method: &str) -> Result<bool, MrbError> { ... } }

Required methods

fn inner(&self) -> mrb_value

fn interp(&self) -> &Mrb

Loading content...

Provided methods

fn funcall<T, M, A>(&self, func: M, args: A) -> Result<T, MrbError> where
    T: TryFromMrb<Value, From = Ruby, To = Rust>,
    M: AsRef<str>,
    A: AsRef<[Value]>, 

fn funcall_with_block<T, M, A>(
    &self,
    func: M,
    args: A,
    block: Value
) -> Result<T, MrbError> where
    T: TryFromMrb<Value, From = Ruby, To = Rust>,
    M: AsRef<str>,
    A: AsRef<[Value]>, 

fn respond_to(&self, method: &str) -> Result<bool, MrbError>

Loading content...

Implementors

impl ValueLike for Value[src]

Loading content...