Trait mrusty::MrubyFile
[−]
[src]
pub trait MrubyFile { fn require(mruby: MrubyType); }
A trait
useful for organising Rust types into dynamic mruby files.
Examples
struct Cont { value: i32 } impl MrubyFile for Cont { fn require(mruby: MrubyType) { mruby.def_class_for::<Cont>("Container"); } } let mruby = Mruby::new(); mruby.def_file::<Cont>("cont");