Trait mozjs::gc::custom::CustomAutoTraceable
source · unsafe trait CustomAutoTraceable: Sized {
const vftable: CustomAutoRooterVFTable = _;
// Required method
fn do_trace(&self, trc: *mut JSTracer);
// Provided method
unsafe extern "C" fn trace(this: *mut c_void, trc: *mut JSTracer) { ... }
}
Expand description
CustomAutoRooter
uses dynamic dispatch on the C++ side for custom tracing,
so provide trace logic via vftable when creating an object on Rust side.
Provided Associated Constants§
const vftable: CustomAutoRooterVFTable = _
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.