Closed lopopolo closed 5 years ago
rust_data_free expects to free an pointer to an Rc<RefCell> that was created by RustBackedValue::try_into_ruby. Enforce this assumption with a type bound on the function so it can only be attached to the mruby VM for objects it can free safely.
rust_data_free expects to free an pointer to an Rc<RefCell> that was
created by RustBackedValue::try_into_ruby. Enforce this assumption with
a type bound on the function so it can only be attached to the mruby VM
for objects it can free safely.