Struct js::jsapi::Rooted [] [src]

#[repr(C)]
pub struct Rooted<T> { pub _base: RootedBase<T>, pub stack: *mut *mut Rooted<*mut c_void>, pub prev: *mut Rooted<*mut c_void>, pub ptr: T, }

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(cx, x)).

If you want to add additional methods to Rooted for a specific specialization, define a RootedBase specialization containing them.

Fields

Methods

impl<T> Rooted<T>
[src]

[src]

[src]

[src]

Trait Implementations

impl<T: Debug> Debug for Rooted<T>
[src]

[src]

Formats the value using the given formatter.