Type Alias script::dom::bindings::import::base::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<'a, T> Handle<'a, T>

source

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

source

pub unsafe fn from_marked_location(ptr: *const T) -> Handle<'a, T>

source

pub unsafe fn from_raw(handle: Handle<T>) -> Handle<'a, T>

source§

impl Handle<'static, Value>

source

pub fn null() -> Handle<'static, Value>

source

pub fn undefined() -> Handle<'static, Value>

Trait Implementations§

source§

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

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) -> Handle<T>

Convert this object to a handle.
source§

impl<'a> ToJSValConvertible for Handle<'a, Value>

source§

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

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

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