Type Alias mozjs::gc::SequenceRooterGuard

source ·
pub type SequenceRooterGuard<'a, T> = CustomAutoRooterGuard<'a, Vec<T>>;

Aliased Type§

struct SequenceRooterGuard<'a, T> {
    rooter: &'a mut CustomAutoRooter<Vec<T, Global>>,
}

Fields§

§rooter: &'a mut CustomAutoRooter<Vec<T, Global>>

Implementations§

source§

impl<'a, T: 'a + CustomTrace> CustomAutoRooterGuard<'a, T>

source

pub fn new(cx: *mut JSContext, rooter: &'a mut CustomAutoRooter<T>) -> Self

source

pub fn handle(&'a self) -> Handle<'a, T>where T: RootKind,

source

pub fn handle_mut(&mut self) -> MutableHandle<'_, T>where T: RootKind,

Trait Implementations§

source§

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

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
source§

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

source§

fn deref_mut(&mut self) -> &mut T

Mutably dereferences the value.
source§

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

source§

fn drop(&mut self)

Executes the destructor for this type. Read more