[][src]Type Definition mruby::Mrb

type Mrb = Rc<RefCell<State>>;

Interpreter instance.

The interpreter State is wrapped in an Rc<RefCell<_>>.

The Rc enables the State to be cloned so it can be stored in the sys::mrb_state, extracted in extern "C" functions, and used in Value instances.

The RefCell enables mutable access to the underlying State, even across an FFI boundary.

Functionality is added to the interpreter via traits, for example, garbage collection or eval.

Trait Implementations

impl MrbEval for Mrb[src]

impl MrbExceptionHandler for Mrb[src]

impl MrbGarbageCollection for Mrb[src]

impl MrbLoadSources for Mrb[src]

fn normalize_source_path<T>(&self, filename: T) -> PathBuf where
    T: AsRef<str>, 
[src]

Normalize path of a Ruby source to be relative to RUBY_LOAD_PATH unless the path is absolute. Read more

impl MrbTopSelf for Mrb[src]

impl MrbWarn for Mrb[src]