Struct js::rust::RootedGuard [] [src]

pub struct RootedGuard<'a, T: 'a + RootKind + GCMethods> { /* fields omitted */ }

Rust API for keeping a Rooted value in the context's root stack. Example usage: rooted!(in(cx) let x = UndefinedValue());. RootedGuard::new also works, but the macro is preferred.

Methods

impl<'a, T: 'a + RootKind + GCMethods> RootedGuard<'a, T>
[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<'a, T: 'a + RootKind + GCMethods> Deref for RootedGuard<'a, T>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<'a, T: 'a + RootKind + GCMethods> DerefMut for RootedGuard<'a, T>
[src]

[src]

Mutably dereferences the value.

impl<'a, T: 'a + RootKind + GCMethods> Drop for RootedGuard<'a, T>
[src]

[src]

Executes the destructor for this type. Read more