Type Alias mozjs::gc::root::HandleValue

source ·
pub type HandleValue<'a> = Handle<'a, Value>;

Aliased Type§

struct HandleValue<'a> {
    pub(crate) ptr: &'a Value,
}

Fields§

§ptr: &'a Value

Implementations§

source§

impl HandleValue<'static>

source

pub fn null() -> Self

source

pub fn undefined() -> Self

Trait Implementations§

source§

impl<'a> ToJSValConvertible for HandleValue<'a>

source§

unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)

Convert self to a JSVal. JSAPI failure causes a panic.