mozjs::gc

Type Alias SequenceRooterGuard

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

Aliased Type§

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

Fields§

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

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>

Source§

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