HandleValue

Type Alias HandleValue 

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

Aliased Type§

pub struct HandleValue<'a> { /* private fields */ }

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.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 8 bytes