Type Alias mozjs::gc::root::HandleObject

source ·
pub type HandleObject<'a> = Handle<'a, *mut JSObject>;

Aliased Type§

struct HandleObject<'a> {
    pub(crate) ptr: &'a *mut JSObject,
}

Fields§

§ptr: &'a *mut JSObject

Implementations§

source§

impl<'a> HandleObject<'a>

source

pub fn null() -> Self

source§

impl<'a, T> Handle<'a, T>

source

pub fn get(&self) -> Twhere T: Copy,

source

pub(crate) fn new(ptr: &'a T) -> Self

source

pub unsafe fn from_marked_location(ptr: *const T) -> Self

source

pub unsafe fn from_raw(handle: RawHandle<T>) -> Self

Trait Implementations§

source§

impl<'a, T: Clone + 'a> Clone for Handle<'a, T>

source§

fn clone(&self) -> Handle<'a, T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a, T> Deref for Handle<'a, T>

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
source§

impl<'a, T> IntoHandle for Handle<'a, T>

§

type Target = T

The type of the handle
source§

fn into_handle(self) -> RawHandle<T>

Convert this object to a handle.
source§

impl<'a, T: Copy + 'a> Copy for Handle<'a, T>