v8

Struct Local

Source
#[repr(C)]
pub struct Local<'s, T>(/* private fields */);
Expand description

An object reference managed by the v8 garbage collector.

All objects returned from v8 have to be tracked by the garbage collector so that it knows that the objects are still alive. Also, because the garbage collector may move objects, it is unsafe to point directly to an object. Instead, all objects are stored in handles which are known by the garbage collector and updated whenever an object moves. Handles should always be passed by value (except in cases like out-parameters) and they should never be allocated on the heap.

There are two types of handles: local and persistent handles.

Local handles are light-weight and transient and typically used in local operations. They are managed by HandleScopes. That means that a HandleScope must exist on the stack when they are created and that they are only valid inside of the HandleScope active during their creation. For passing a local handle to an outer HandleScope, an EscapableHandleScope and its Escape() method must be used.

Persistent handles can be used when storing objects across several independent operations and have to be explicitly deallocated when they’re no longer used.

It is safe to extract the object stored in the handle by dereferencing the handle (for instance, to extract the *Object from a Local<Object>); the value will still be governed by a handle behind the scenes and the same rules apply to these values as to their handles.

Note: Local handles in Rusty V8 differ from the V8 C++ API in that they are never empty. In situations where empty handles are needed, use Option<Local>.

Implementations§

Source§

impl<'s, T> Local<'s, T>

Source

pub fn new( scope: &mut HandleScope<'s, ()>, handle: impl Handle<Data = T>, ) -> Self

Construct a new Local from an existing Handle.

Source

pub unsafe fn cast_unchecked<A>(other: Local<'s, A>) -> Self
where Local<'s, A>: TryFrom<Self>,

Create a local handle by downcasting from one of its super types. This function is unsafe because the cast is unchecked.

Source§

impl<'s, T> Local<'s, T>

Source

pub fn try_cast<A>( self, ) -> Result<Local<'s, A>, <Self as TryInto<Local<'s, A>>>::Error>
where Self: TryInto<Local<'s, A>>,

Attempts to cast the contained type to another, returning an error if the conversion fails.

§Examples
let value: Local<'_, Value> = get_v8_value();

if let Ok(func) = value.try_cast::<Function> {
  //
}
Source

pub fn cast<A>(self) -> Local<'s, A>
where Self: TryInto<Local<'s, A>, Error: Debug>,

Attempts to cast the contained type to another, panicking if the conversion fails.

§Example
let value: Local<'_, Value> = get_v8_value();

let func = value.cast::<Function>();

Trait Implementations§

Source§

impl<'s, T> Borrow<T> for Local<'s, T>

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<'s, T> Clone for Local<'s, T>

Source§

fn clone(&self) -> Self

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<'s, T: Debug> Debug for Local<'s, T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'s, T> Deref for Local<'s, T>

Source§

type Target = T

The resulting type after dereferencing.
Source§

fn deref(&self) -> &T

Dereferences the value.
Source§

impl<'s> From<Local<'s, AccessorSignature>> for Local<'s, Data>

Source§

fn from(l: Local<'s, AccessorSignature>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Array>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Array>> for Local<'s, Object>

Source§

fn from(l: Local<'s, Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Array>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, ArrayBuffer>> for Local<'s, Data>

Source§

fn from(l: Local<'s, ArrayBuffer>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, ArrayBuffer>> for Local<'s, Object>

Source§

fn from(l: Local<'s, ArrayBuffer>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, ArrayBuffer>> for Local<'s, Value>

Source§

fn from(l: Local<'s, ArrayBuffer>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, ArrayBufferView>> for Local<'s, Data>

Source§

fn from(l: Local<'s, ArrayBufferView>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, ArrayBufferView>> for Local<'s, Object>

Source§

fn from(l: Local<'s, ArrayBufferView>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, ArrayBufferView>> for Local<'s, Value>

Source§

fn from(l: Local<'s, ArrayBufferView>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BigInt>> for Local<'s, Data>

Source§

fn from(l: Local<'s, BigInt>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BigInt>> for Local<'s, Primitive>

Source§

fn from(l: Local<'s, BigInt>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BigInt>> for Local<'s, Value>

Source§

fn from(l: Local<'s, BigInt>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BigInt64Array>> for Local<'s, ArrayBufferView>

Source§

fn from(l: Local<'s, BigInt64Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BigInt64Array>> for Local<'s, Data>

Source§

fn from(l: Local<'s, BigInt64Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BigInt64Array>> for Local<'s, Object>

Source§

fn from(l: Local<'s, BigInt64Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BigInt64Array>> for Local<'s, TypedArray>

Source§

fn from(l: Local<'s, BigInt64Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BigInt64Array>> for Local<'s, Value>

Source§

fn from(l: Local<'s, BigInt64Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BigIntObject>> for Local<'s, Data>

Source§

fn from(l: Local<'s, BigIntObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BigIntObject>> for Local<'s, Object>

Source§

fn from(l: Local<'s, BigIntObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BigIntObject>> for Local<'s, Value>

Source§

fn from(l: Local<'s, BigIntObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BigUint64Array>> for Local<'s, ArrayBufferView>

Source§

fn from(l: Local<'s, BigUint64Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BigUint64Array>> for Local<'s, Data>

Source§

fn from(l: Local<'s, BigUint64Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BigUint64Array>> for Local<'s, Object>

Source§

fn from(l: Local<'s, BigUint64Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BigUint64Array>> for Local<'s, TypedArray>

Source§

fn from(l: Local<'s, BigUint64Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BigUint64Array>> for Local<'s, Value>

Source§

fn from(l: Local<'s, BigUint64Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Boolean>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Boolean>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Boolean>> for Local<'s, Primitive>

Source§

fn from(l: Local<'s, Boolean>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Boolean>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Boolean>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BooleanObject>> for Local<'s, Data>

Source§

fn from(l: Local<'s, BooleanObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BooleanObject>> for Local<'s, Object>

Source§

fn from(l: Local<'s, BooleanObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, BooleanObject>> for Local<'s, Value>

Source§

fn from(l: Local<'s, BooleanObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Context>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Context>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, DataView>> for Local<'s, ArrayBufferView>

Source§

fn from(l: Local<'s, DataView>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, DataView>> for Local<'s, Data>

Source§

fn from(l: Local<'s, DataView>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, DataView>> for Local<'s, Object>

Source§

fn from(l: Local<'s, DataView>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, DataView>> for Local<'s, Value>

Source§

fn from(l: Local<'s, DataView>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Date>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Date>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Date>> for Local<'s, Object>

Source§

fn from(l: Local<'s, Date>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Date>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Date>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, External>> for Local<'s, Data>

Source§

fn from(l: Local<'s, External>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, External>> for Local<'s, Value>

Source§

fn from(l: Local<'s, External>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, FixedArray>> for Local<'s, Data>

Source§

fn from(l: Local<'s, FixedArray>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Float32Array>> for Local<'s, ArrayBufferView>

Source§

fn from(l: Local<'s, Float32Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Float32Array>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Float32Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Float32Array>> for Local<'s, Object>

Source§

fn from(l: Local<'s, Float32Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Float32Array>> for Local<'s, TypedArray>

Source§

fn from(l: Local<'s, Float32Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Float32Array>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Float32Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Float64Array>> for Local<'s, ArrayBufferView>

Source§

fn from(l: Local<'s, Float64Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Float64Array>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Float64Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Float64Array>> for Local<'s, Object>

Source§

fn from(l: Local<'s, Float64Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Float64Array>> for Local<'s, TypedArray>

Source§

fn from(l: Local<'s, Float64Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Float64Array>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Float64Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Function>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Function>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Function>> for Local<'s, Object>

Source§

fn from(l: Local<'s, Function>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Function>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Function>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, FunctionTemplate>> for Local<'s, Data>

Source§

fn from(l: Local<'s, FunctionTemplate>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, FunctionTemplate>> for Local<'s, Template>

Source§

fn from(l: Local<'s, FunctionTemplate>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int16Array>> for Local<'s, ArrayBufferView>

Source§

fn from(l: Local<'s, Int16Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int16Array>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Int16Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int16Array>> for Local<'s, Object>

Source§

fn from(l: Local<'s, Int16Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int16Array>> for Local<'s, TypedArray>

Source§

fn from(l: Local<'s, Int16Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int16Array>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Int16Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int32>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Int32>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int32>> for Local<'s, Integer>

Source§

fn from(l: Local<'s, Int32>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int32>> for Local<'s, Number>

Source§

fn from(l: Local<'s, Int32>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int32>> for Local<'s, Primitive>

Source§

fn from(l: Local<'s, Int32>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int32>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Int32>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int32Array>> for Local<'s, ArrayBufferView>

Source§

fn from(l: Local<'s, Int32Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int32Array>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Int32Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int32Array>> for Local<'s, Object>

Source§

fn from(l: Local<'s, Int32Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int32Array>> for Local<'s, TypedArray>

Source§

fn from(l: Local<'s, Int32Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int32Array>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Int32Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int8Array>> for Local<'s, ArrayBufferView>

Source§

fn from(l: Local<'s, Int8Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int8Array>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Int8Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int8Array>> for Local<'s, Object>

Source§

fn from(l: Local<'s, Int8Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int8Array>> for Local<'s, TypedArray>

Source§

fn from(l: Local<'s, Int8Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Int8Array>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Int8Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Integer>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Integer>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Integer>> for Local<'s, Number>

Source§

fn from(l: Local<'s, Integer>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Integer>> for Local<'s, Primitive>

Source§

fn from(l: Local<'s, Integer>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Integer>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Integer>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Map>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Map>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Map>> for Local<'s, Object>

Source§

fn from(l: Local<'s, Map>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Map>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Map>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Module>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Module>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, ModuleRequest>> for Local<'s, Data>

Source§

fn from(l: Local<'s, ModuleRequest>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Name>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Name>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Name>> for Local<'s, Primitive>

Source§

fn from(l: Local<'s, Name>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Name>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Name>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Number>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Number>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Number>> for Local<'s, Primitive>

Source§

fn from(l: Local<'s, Number>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Number>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Number>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, NumberObject>> for Local<'s, Data>

Source§

fn from(l: Local<'s, NumberObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, NumberObject>> for Local<'s, Object>

Source§

fn from(l: Local<'s, NumberObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, NumberObject>> for Local<'s, Value>

Source§

fn from(l: Local<'s, NumberObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Object>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Object>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Object>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Object>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, ObjectTemplate>> for Local<'s, Data>

Source§

fn from(l: Local<'s, ObjectTemplate>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, ObjectTemplate>> for Local<'s, Template>

Source§

fn from(l: Local<'s, ObjectTemplate>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Primitive>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Primitive>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Primitive>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Primitive>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, PrimitiveArray>> for Local<'s, Data>

Source§

fn from(l: Local<'s, PrimitiveArray>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Private>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Private>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Promise>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Promise>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Promise>> for Local<'s, Object>

Source§

fn from(l: Local<'s, Promise>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Promise>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Promise>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, PromiseResolver>> for Local<'s, Data>

Source§

fn from(l: Local<'s, PromiseResolver>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, PromiseResolver>> for Local<'s, Object>

Source§

fn from(l: Local<'s, PromiseResolver>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, PromiseResolver>> for Local<'s, Value>

Source§

fn from(l: Local<'s, PromiseResolver>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Proxy>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Proxy>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Proxy>> for Local<'s, Object>

Source§

fn from(l: Local<'s, Proxy>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Proxy>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Proxy>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, RegExp>> for Local<'s, Data>

Source§

fn from(l: Local<'s, RegExp>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, RegExp>> for Local<'s, Object>

Source§

fn from(l: Local<'s, RegExp>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, RegExp>> for Local<'s, Value>

Source§

fn from(l: Local<'s, RegExp>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Set>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Set>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Set>> for Local<'s, Object>

Source§

fn from(l: Local<'s, Set>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Set>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Set>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, SharedArrayBuffer>> for Local<'s, Data>

Source§

fn from(l: Local<'s, SharedArrayBuffer>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, SharedArrayBuffer>> for Local<'s, Object>

Source§

fn from(l: Local<'s, SharedArrayBuffer>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, SharedArrayBuffer>> for Local<'s, Value>

Source§

fn from(l: Local<'s, SharedArrayBuffer>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Signature>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Signature>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, String>> for Local<'s, Data>

Source§

fn from(l: Local<'s, String>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, String>> for Local<'s, Name>

Source§

fn from(l: Local<'s, String>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, String>> for Local<'s, Primitive>

Source§

fn from(l: Local<'s, String>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, String>> for Local<'s, Value>

Source§

fn from(l: Local<'s, String>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, StringObject>> for Local<'s, Data>

Source§

fn from(l: Local<'s, StringObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, StringObject>> for Local<'s, Object>

Source§

fn from(l: Local<'s, StringObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, StringObject>> for Local<'s, Value>

Source§

fn from(l: Local<'s, StringObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Symbol>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Symbol>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Symbol>> for Local<'s, Name>

Source§

fn from(l: Local<'s, Symbol>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Symbol>> for Local<'s, Primitive>

Source§

fn from(l: Local<'s, Symbol>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Symbol>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Symbol>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, SymbolObject>> for Local<'s, Data>

Source§

fn from(l: Local<'s, SymbolObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, SymbolObject>> for Local<'s, Object>

Source§

fn from(l: Local<'s, SymbolObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, SymbolObject>> for Local<'s, Value>

Source§

fn from(l: Local<'s, SymbolObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Template>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Template>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, TypedArray>> for Local<'s, ArrayBufferView>

Source§

fn from(l: Local<'s, TypedArray>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, TypedArray>> for Local<'s, Data>

Source§

fn from(l: Local<'s, TypedArray>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, TypedArray>> for Local<'s, Object>

Source§

fn from(l: Local<'s, TypedArray>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, TypedArray>> for Local<'s, Value>

Source§

fn from(l: Local<'s, TypedArray>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint16Array>> for Local<'s, ArrayBufferView>

Source§

fn from(l: Local<'s, Uint16Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint16Array>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Uint16Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint16Array>> for Local<'s, Object>

Source§

fn from(l: Local<'s, Uint16Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint16Array>> for Local<'s, TypedArray>

Source§

fn from(l: Local<'s, Uint16Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint16Array>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Uint16Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint32>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Uint32>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint32>> for Local<'s, Integer>

Source§

fn from(l: Local<'s, Uint32>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint32>> for Local<'s, Number>

Source§

fn from(l: Local<'s, Uint32>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint32>> for Local<'s, Primitive>

Source§

fn from(l: Local<'s, Uint32>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint32>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Uint32>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint32Array>> for Local<'s, ArrayBufferView>

Source§

fn from(l: Local<'s, Uint32Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint32Array>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Uint32Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint32Array>> for Local<'s, Object>

Source§

fn from(l: Local<'s, Uint32Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint32Array>> for Local<'s, TypedArray>

Source§

fn from(l: Local<'s, Uint32Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint32Array>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Uint32Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint8Array>> for Local<'s, ArrayBufferView>

Source§

fn from(l: Local<'s, Uint8Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint8Array>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Uint8Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint8Array>> for Local<'s, Object>

Source§

fn from(l: Local<'s, Uint8Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint8Array>> for Local<'s, TypedArray>

Source§

fn from(l: Local<'s, Uint8Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint8Array>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Uint8Array>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint8ClampedArray>> for Local<'s, ArrayBufferView>

Source§

fn from(l: Local<'s, Uint8ClampedArray>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint8ClampedArray>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Uint8ClampedArray>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint8ClampedArray>> for Local<'s, Object>

Source§

fn from(l: Local<'s, Uint8ClampedArray>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint8ClampedArray>> for Local<'s, TypedArray>

Source§

fn from(l: Local<'s, Uint8ClampedArray>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Uint8ClampedArray>> for Local<'s, Value>

Source§

fn from(l: Local<'s, Uint8ClampedArray>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, UnboundModuleScript>> for Local<'s, Data>

Source§

fn from(l: Local<'s, UnboundModuleScript>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, Value>> for Local<'s, Data>

Source§

fn from(l: Local<'s, Value>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, WasmMemoryObject>> for Local<'s, Data>

Source§

fn from(l: Local<'s, WasmMemoryObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, WasmMemoryObject>> for Local<'s, Object>

Source§

fn from(l: Local<'s, WasmMemoryObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, WasmMemoryObject>> for Local<'s, Value>

Source§

fn from(l: Local<'s, WasmMemoryObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, WasmModuleObject>> for Local<'s, Data>

Source§

fn from(l: Local<'s, WasmModuleObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, WasmModuleObject>> for Local<'s, Object>

Source§

fn from(l: Local<'s, WasmModuleObject>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Local<'s, WasmModuleObject>> for Local<'s, Value>

Source§

fn from(l: Local<'s, WasmModuleObject>) -> Self

Converts to this type from the input type.
Source§

impl<'a, 's: 'a, T> Handle for &'a Local<'s, T>

Source§

type Data = T

Source§

fn open<'a>(&'a self, isolate: &mut Isolate) -> &'a Self::Data

Returns a reference to the V8 heap object that this handle represents. The handle does not get cloned, nor is it converted to a Local handle. Read more
Source§

unsafe fn get_unchecked(&self) -> &Self::Data

Reads the inner value contained in this handle, without verifying that the this handle is hosted by the currently active Isolate. Read more
Source§

impl<'s, T> Handle for Local<'s, T>

Source§

type Data = T

Source§

fn open<'a>(&'a self, isolate: &mut Isolate) -> &'a Self::Data

Returns a reference to the V8 heap object that this handle represents. The handle does not get cloned, nor is it converted to a Local handle. Read more
Source§

unsafe fn get_unchecked(&self) -> &Self::Data

Reads the inner value contained in this handle, without verifying that the this handle is hosted by the currently active Isolate. Read more
Source§

impl<'s, T: Hash> Hash for Local<'s, T>

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<'s, T, Rhs: Handle> PartialEq<Rhs> for Local<'s, T>
where T: PartialEq<Rhs::Data>,

Source§

fn eq(&self, other: &Rhs) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, BigInt64Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, ArrayBufferView>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, BigUint64Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, ArrayBufferView>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, DataView>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, ArrayBufferView>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Float32Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, ArrayBufferView>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Float64Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, ArrayBufferView>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Int16Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, ArrayBufferView>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Int32Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, ArrayBufferView>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Int8Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, ArrayBufferView>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, TypedArray>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, ArrayBufferView>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint16Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, ArrayBufferView>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint32Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, ArrayBufferView>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint8Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, ArrayBufferView>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint8ClampedArray>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, ArrayBufferView>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, ArrayBuffer>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, ArrayBufferView>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, BigInt>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, BigInt64Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, BigIntObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, BigUint64Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Boolean>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, BooleanObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Context>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, DataView>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Date>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, External>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, FixedArray>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Float32Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Float64Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Function>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, FunctionTemplate>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Int16Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Int32>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Int32Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Int8Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Integer>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Map>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Module>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, ModuleRequest>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Name>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Number>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, NumberObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Object>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, ObjectTemplate>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Primitive>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Private>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Promise>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Proxy>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, RegExp>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Set>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, SharedArrayBuffer>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, String>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, StringObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Symbol>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, SymbolObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Template>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, TypedArray>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Uint16Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Uint32>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Uint32Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Uint8Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Uint8ClampedArray>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, Value>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, WasmMemoryObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Data>> for Local<'s, WasmModuleObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Data>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Integer>> for Local<'s, Int32>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Integer>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Integer>> for Local<'s, Uint32>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Integer>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Name>> for Local<'s, String>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Name>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Name>> for Local<'s, Symbol>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Name>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Number>> for Local<'s, Int32>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Number>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Number>> for Local<'s, Integer>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Number>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Number>> for Local<'s, Uint32>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Number>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, ArrayBuffer>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, ArrayBufferView>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, BigInt64Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, BigIntObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, BigUint64Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, BooleanObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, DataView>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, Date>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, Float32Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, Float64Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, Function>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, Int16Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, Int32Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, Int8Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, Map>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, NumberObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, Promise>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, Proxy>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, RegExp>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, Set>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, SharedArrayBuffer>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, StringObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, SymbolObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, TypedArray>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, Uint16Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, Uint32Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, Uint8Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, Uint8ClampedArray>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, WasmMemoryObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Object>> for Local<'s, WasmModuleObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Object>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Primitive>> for Local<'s, BigInt>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Primitive>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Primitive>> for Local<'s, Boolean>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Primitive>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Primitive>> for Local<'s, Int32>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Primitive>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Primitive>> for Local<'s, Integer>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Primitive>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Primitive>> for Local<'s, Name>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Primitive>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Primitive>> for Local<'s, Number>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Primitive>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Primitive>> for Local<'s, String>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Primitive>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Primitive>> for Local<'s, Symbol>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Primitive>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Primitive>> for Local<'s, Uint32>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Primitive>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Template>> for Local<'s, FunctionTemplate>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Template>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Template>> for Local<'s, ObjectTemplate>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Template>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, BigInt64Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, TypedArray>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, BigUint64Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, TypedArray>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Float32Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, TypedArray>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Float64Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, TypedArray>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Int16Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, TypedArray>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Int32Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, TypedArray>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Int8Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, TypedArray>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint16Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, TypedArray>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint32Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, TypedArray>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint8Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, TypedArray>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint8ClampedArray>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, TypedArray>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, ArrayBuffer>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, ArrayBufferView>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, BigInt>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, BigInt64Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, BigIntObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, BigUint64Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Boolean>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, BooleanObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, DataView>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Date>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, External>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Float32Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Float64Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Function>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Int16Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Int32>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Int32Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Int8Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Integer>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Map>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Name>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Number>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, NumberObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Object>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Primitive>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Promise>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Proxy>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, RegExp>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Set>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, SharedArrayBuffer>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, String>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, StringObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Symbol>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, SymbolObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, TypedArray>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Uint16Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Uint32>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Uint32Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Uint8Array>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, Uint8ClampedArray>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, WasmMemoryObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s> TryFrom<Local<'s, Value>> for Local<'s, WasmModuleObject>

Source§

type Error = DataError

The type returned in the event of a conversion error.
Source§

fn try_from(l: Local<'s, Value>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'s, T> Copy for Local<'s, T>

Source§

impl<'s, T> Eq for Local<'s, T>
where T: Eq,

Auto Trait Implementations§

§

impl<'s, T> Freeze for Local<'s, T>

§

impl<'s, T> RefUnwindSafe for Local<'s, T>
where T: RefUnwindSafe,

§

impl<'s, T> !Send for Local<'s, T>

§

impl<'s, T> !Sync for Local<'s, T>

§

impl<'s, T> Unpin for Local<'s, T>

§

impl<'s, T> UnwindSafe for Local<'s, T>
where T: RefUnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<F, T, Tag> MapFnTo<T, Tag> for F
where F: UnitType, T: MapFnFrom<F, Tag>,

Source§

fn mapping() -> T

Source§

fn map_fn_to(self) -> T

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.