[][src]Trait mruby_sys::DescribeState

pub trait DescribeState {
    fn info(&self) -> String;
fn debug(&self) -> String;
fn version(&self) -> String;
fn revision(&self) -> String; }

Methods to describe an mrb_state.

Required methods

fn info(&self) -> String

Wraper around fmt::Display for mrb_state. Returns Ruby engine and interpreter version. For example:

mruby 2.0

fn debug(&self) -> String

Wrapper around fmt::Debug for mrb_state. Returns Ruby engine, interpreter version, engine version, vendored revision, and mrb_state address. For example:

mruby 2.0 (v2.0.1 rev c078758) interpreter at 0x7f85b8800000

fn version(&self) -> String

Returns detailed interpreter version including engine version. For example:

2.0 (v2.0.1)

fn revision(&self) -> String

Returns revision of vendored mruby source. See build.rs. For example:

c078758
Loading content...

Implementations on Foreign Types

impl DescribeState for *mut mrb_state[src]

Loading content...

Implementors

Loading content...