Struct mozjs::rust::CustomAutoRooterGuard [] [src]

pub struct CustomAutoRooterGuard<'a, T: 'a + CustomTrace> { /* fields omitted */ }

An RAII guard used to root underlying data in CustomAutoRooter until the guard is dropped (falls out of scope). The underlying data can be accessed through this guard via its Deref and DerefMut implementations. This structure is created by root method on CustomAutoRooter or by the auto_root! macro.

Methods

impl<'a, T: 'a + CustomTrace> CustomAutoRooterGuard<'a, T>
[src]

[src]

[src]

[src]

Trait Implementations

impl<'a, T: 'a + CustomTrace> Deref for CustomAutoRooterGuard<'a, T>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<'a, T: 'a + CustomTrace> DerefMut for CustomAutoRooterGuard<'a, T>
[src]

[src]

Mutably dereferences the value.

impl<'a, T: 'a + CustomTrace> Drop for CustomAutoRooterGuard<'a, T>
[src]

[src]

Executes the destructor for this type. Read more