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

Method init

gramfuzz_mrusty/src/mruby.rs:1693–1711  ·  view source on GitHub ↗

Initializes the `self` mruby object passed to `initialize` with a Rust object of type `T`. Note:* `T` must be defined on the current `Mruby` with `def_class`. # Examples ``` # #[macro_use] extern crate mrusty; use mrusty::{Mruby, MrubyImpl}; # fn main() { let mruby = Mruby::new(); struct Cont { value: i32 }; mruby.def_class_for:: ("Container"); mruby.def_method_for:: ("initializ

(self, obj: T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

mrb_ext_data_initFunction · 0.85

Tested by

no test coverage detected