MCPcopy Create free account
hub / github.com/RUB-SysSec/nautilus / MrubyFile

Interface MrubyFile

gramfuzz_mrusty/src/mruby.rs:294–296  ·  view source on GitHub ↗

A `trait` useful for organising Rust types into dynamic mruby files. # Examples ``` # use mrusty::Mruby; # use mrusty::MrubyFile; # use mrusty::MrubyImpl; # use mrusty::MrubyType; struct Cont { value: i32 } impl MrubyFile for Cont { fn require(mruby: MrubyType) { mruby.def_class_for:: ("Container"); } } let mruby = Mruby::new(); mruby.def_file:: ("cont"); ```

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Implementers 1

spec.rsgramfuzz_mrusty/src/spec.rs

Calls

no outgoing calls

Tested by

no test coverage detected