Type Alias mozjs::jsapi::RootedObject
source · pub type RootedObject = Rooted<*mut JSObject>;
Expand description
Local variable of type T whose value is always rooted. This is typically
used for local variables, or for non-rooted values being passed to a
function that requires a handle, e.g. Foo(Root
If you want to add additional methods to Rooted for a specific
specialization, define a RootedOperations
Aliased Type§
struct RootedObject {
pub stack: *mut *mut Rooted<*mut c_void>,
pub prev: *mut Rooted<*mut c_void>,
pub ptr: *mut JSObject,
}
Fields§
§stack: *mut *mut Rooted<*mut c_void>
§prev: *mut Rooted<*mut c_void>
§ptr: *mut JSObject