#[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>
impl<'s, T> Local<'s, T>
Sourcepub fn new(
scope: &mut HandleScope<'s, ()>,
handle: impl Handle<Data = T>,
) -> Self
pub fn new( scope: &mut HandleScope<'s, ()>, handle: impl Handle<Data = T>, ) -> Self
Construct a new Local from an existing Handle.
Sourcepub unsafe fn cast_unchecked<A>(other: Local<'s, A>) -> Self
pub unsafe fn cast_unchecked<A>(other: Local<'s, A>) -> Self
Create a local handle by downcasting from one of its super types. This function is unsafe because the cast is unchecked.
Trait Implementations§
Source§impl<'s> From<Local<'s, AccessorSignature>> for Local<'s, Data>
impl<'s> From<Local<'s, AccessorSignature>> for Local<'s, Data>
Source§fn from(l: Local<'s, AccessorSignature>) -> Self
fn from(l: Local<'s, AccessorSignature>) -> Self
Source§impl<'s> From<Local<'s, ArrayBuffer>> for Local<'s, Data>
impl<'s> From<Local<'s, ArrayBuffer>> for Local<'s, Data>
Source§fn from(l: Local<'s, ArrayBuffer>) -> Self
fn from(l: Local<'s, ArrayBuffer>) -> Self
Source§impl<'s> From<Local<'s, ArrayBuffer>> for Local<'s, Object>
impl<'s> From<Local<'s, ArrayBuffer>> for Local<'s, Object>
Source§fn from(l: Local<'s, ArrayBuffer>) -> Self
fn from(l: Local<'s, ArrayBuffer>) -> Self
Source§impl<'s> From<Local<'s, ArrayBuffer>> for Local<'s, Value>
impl<'s> From<Local<'s, ArrayBuffer>> for Local<'s, Value>
Source§fn from(l: Local<'s, ArrayBuffer>) -> Self
fn from(l: Local<'s, ArrayBuffer>) -> Self
Source§impl<'s> From<Local<'s, ArrayBufferView>> for Local<'s, Data>
impl<'s> From<Local<'s, ArrayBufferView>> for Local<'s, Data>
Source§fn from(l: Local<'s, ArrayBufferView>) -> Self
fn from(l: Local<'s, ArrayBufferView>) -> Self
Source§impl<'s> From<Local<'s, ArrayBufferView>> for Local<'s, Object>
impl<'s> From<Local<'s, ArrayBufferView>> for Local<'s, Object>
Source§fn from(l: Local<'s, ArrayBufferView>) -> Self
fn from(l: Local<'s, ArrayBufferView>) -> Self
Source§impl<'s> From<Local<'s, ArrayBufferView>> for Local<'s, Value>
impl<'s> From<Local<'s, ArrayBufferView>> for Local<'s, Value>
Source§fn from(l: Local<'s, ArrayBufferView>) -> Self
fn from(l: Local<'s, ArrayBufferView>) -> Self
Source§impl<'s> From<Local<'s, BigInt64Array>> for Local<'s, ArrayBufferView>
impl<'s> From<Local<'s, BigInt64Array>> for Local<'s, ArrayBufferView>
Source§fn from(l: Local<'s, BigInt64Array>) -> Self
fn from(l: Local<'s, BigInt64Array>) -> Self
Source§impl<'s> From<Local<'s, BigInt64Array>> for Local<'s, Data>
impl<'s> From<Local<'s, BigInt64Array>> for Local<'s, Data>
Source§fn from(l: Local<'s, BigInt64Array>) -> Self
fn from(l: Local<'s, BigInt64Array>) -> Self
Source§impl<'s> From<Local<'s, BigInt64Array>> for Local<'s, Object>
impl<'s> From<Local<'s, BigInt64Array>> for Local<'s, Object>
Source§fn from(l: Local<'s, BigInt64Array>) -> Self
fn from(l: Local<'s, BigInt64Array>) -> Self
Source§impl<'s> From<Local<'s, BigInt64Array>> for Local<'s, TypedArray>
impl<'s> From<Local<'s, BigInt64Array>> for Local<'s, TypedArray>
Source§fn from(l: Local<'s, BigInt64Array>) -> Self
fn from(l: Local<'s, BigInt64Array>) -> Self
Source§impl<'s> From<Local<'s, BigInt64Array>> for Local<'s, Value>
impl<'s> From<Local<'s, BigInt64Array>> for Local<'s, Value>
Source§fn from(l: Local<'s, BigInt64Array>) -> Self
fn from(l: Local<'s, BigInt64Array>) -> Self
Source§impl<'s> From<Local<'s, BigIntObject>> for Local<'s, Data>
impl<'s> From<Local<'s, BigIntObject>> for Local<'s, Data>
Source§fn from(l: Local<'s, BigIntObject>) -> Self
fn from(l: Local<'s, BigIntObject>) -> Self
Source§impl<'s> From<Local<'s, BigIntObject>> for Local<'s, Object>
impl<'s> From<Local<'s, BigIntObject>> for Local<'s, Object>
Source§fn from(l: Local<'s, BigIntObject>) -> Self
fn from(l: Local<'s, BigIntObject>) -> Self
Source§impl<'s> From<Local<'s, BigIntObject>> for Local<'s, Value>
impl<'s> From<Local<'s, BigIntObject>> for Local<'s, Value>
Source§fn from(l: Local<'s, BigIntObject>) -> Self
fn from(l: Local<'s, BigIntObject>) -> Self
Source§impl<'s> From<Local<'s, BigUint64Array>> for Local<'s, ArrayBufferView>
impl<'s> From<Local<'s, BigUint64Array>> for Local<'s, ArrayBufferView>
Source§fn from(l: Local<'s, BigUint64Array>) -> Self
fn from(l: Local<'s, BigUint64Array>) -> Self
Source§impl<'s> From<Local<'s, BigUint64Array>> for Local<'s, Data>
impl<'s> From<Local<'s, BigUint64Array>> for Local<'s, Data>
Source§fn from(l: Local<'s, BigUint64Array>) -> Self
fn from(l: Local<'s, BigUint64Array>) -> Self
Source§impl<'s> From<Local<'s, BigUint64Array>> for Local<'s, Object>
impl<'s> From<Local<'s, BigUint64Array>> for Local<'s, Object>
Source§fn from(l: Local<'s, BigUint64Array>) -> Self
fn from(l: Local<'s, BigUint64Array>) -> Self
Source§impl<'s> From<Local<'s, BigUint64Array>> for Local<'s, TypedArray>
impl<'s> From<Local<'s, BigUint64Array>> for Local<'s, TypedArray>
Source§fn from(l: Local<'s, BigUint64Array>) -> Self
fn from(l: Local<'s, BigUint64Array>) -> Self
Source§impl<'s> From<Local<'s, BigUint64Array>> for Local<'s, Value>
impl<'s> From<Local<'s, BigUint64Array>> for Local<'s, Value>
Source§fn from(l: Local<'s, BigUint64Array>) -> Self
fn from(l: Local<'s, BigUint64Array>) -> Self
Source§impl<'s> From<Local<'s, BooleanObject>> for Local<'s, Data>
impl<'s> From<Local<'s, BooleanObject>> for Local<'s, Data>
Source§fn from(l: Local<'s, BooleanObject>) -> Self
fn from(l: Local<'s, BooleanObject>) -> Self
Source§impl<'s> From<Local<'s, BooleanObject>> for Local<'s, Object>
impl<'s> From<Local<'s, BooleanObject>> for Local<'s, Object>
Source§fn from(l: Local<'s, BooleanObject>) -> Self
fn from(l: Local<'s, BooleanObject>) -> Self
Source§impl<'s> From<Local<'s, BooleanObject>> for Local<'s, Value>
impl<'s> From<Local<'s, BooleanObject>> for Local<'s, Value>
Source§fn from(l: Local<'s, BooleanObject>) -> Self
fn from(l: Local<'s, BooleanObject>) -> Self
Source§impl<'s> From<Local<'s, FixedArray>> for Local<'s, Data>
impl<'s> From<Local<'s, FixedArray>> for Local<'s, Data>
Source§fn from(l: Local<'s, FixedArray>) -> Self
fn from(l: Local<'s, FixedArray>) -> Self
Source§impl<'s> From<Local<'s, Float32Array>> for Local<'s, ArrayBufferView>
impl<'s> From<Local<'s, Float32Array>> for Local<'s, ArrayBufferView>
Source§fn from(l: Local<'s, Float32Array>) -> Self
fn from(l: Local<'s, Float32Array>) -> Self
Source§impl<'s> From<Local<'s, Float32Array>> for Local<'s, Data>
impl<'s> From<Local<'s, Float32Array>> for Local<'s, Data>
Source§fn from(l: Local<'s, Float32Array>) -> Self
fn from(l: Local<'s, Float32Array>) -> Self
Source§impl<'s> From<Local<'s, Float32Array>> for Local<'s, Object>
impl<'s> From<Local<'s, Float32Array>> for Local<'s, Object>
Source§fn from(l: Local<'s, Float32Array>) -> Self
fn from(l: Local<'s, Float32Array>) -> Self
Source§impl<'s> From<Local<'s, Float32Array>> for Local<'s, TypedArray>
impl<'s> From<Local<'s, Float32Array>> for Local<'s, TypedArray>
Source§fn from(l: Local<'s, Float32Array>) -> Self
fn from(l: Local<'s, Float32Array>) -> Self
Source§impl<'s> From<Local<'s, Float32Array>> for Local<'s, Value>
impl<'s> From<Local<'s, Float32Array>> for Local<'s, Value>
Source§fn from(l: Local<'s, Float32Array>) -> Self
fn from(l: Local<'s, Float32Array>) -> Self
Source§impl<'s> From<Local<'s, Float64Array>> for Local<'s, ArrayBufferView>
impl<'s> From<Local<'s, Float64Array>> for Local<'s, ArrayBufferView>
Source§fn from(l: Local<'s, Float64Array>) -> Self
fn from(l: Local<'s, Float64Array>) -> Self
Source§impl<'s> From<Local<'s, Float64Array>> for Local<'s, Data>
impl<'s> From<Local<'s, Float64Array>> for Local<'s, Data>
Source§fn from(l: Local<'s, Float64Array>) -> Self
fn from(l: Local<'s, Float64Array>) -> Self
Source§impl<'s> From<Local<'s, Float64Array>> for Local<'s, Object>
impl<'s> From<Local<'s, Float64Array>> for Local<'s, Object>
Source§fn from(l: Local<'s, Float64Array>) -> Self
fn from(l: Local<'s, Float64Array>) -> Self
Source§impl<'s> From<Local<'s, Float64Array>> for Local<'s, TypedArray>
impl<'s> From<Local<'s, Float64Array>> for Local<'s, TypedArray>
Source§fn from(l: Local<'s, Float64Array>) -> Self
fn from(l: Local<'s, Float64Array>) -> Self
Source§impl<'s> From<Local<'s, Float64Array>> for Local<'s, Value>
impl<'s> From<Local<'s, Float64Array>> for Local<'s, Value>
Source§fn from(l: Local<'s, Float64Array>) -> Self
fn from(l: Local<'s, Float64Array>) -> Self
Source§impl<'s> From<Local<'s, FunctionTemplate>> for Local<'s, Data>
impl<'s> From<Local<'s, FunctionTemplate>> for Local<'s, Data>
Source§fn from(l: Local<'s, FunctionTemplate>) -> Self
fn from(l: Local<'s, FunctionTemplate>) -> Self
Source§impl<'s> From<Local<'s, FunctionTemplate>> for Local<'s, Template>
impl<'s> From<Local<'s, FunctionTemplate>> for Local<'s, Template>
Source§fn from(l: Local<'s, FunctionTemplate>) -> Self
fn from(l: Local<'s, FunctionTemplate>) -> Self
Source§impl<'s> From<Local<'s, Int16Array>> for Local<'s, ArrayBufferView>
impl<'s> From<Local<'s, Int16Array>> for Local<'s, ArrayBufferView>
Source§fn from(l: Local<'s, Int16Array>) -> Self
fn from(l: Local<'s, Int16Array>) -> Self
Source§impl<'s> From<Local<'s, Int16Array>> for Local<'s, Data>
impl<'s> From<Local<'s, Int16Array>> for Local<'s, Data>
Source§fn from(l: Local<'s, Int16Array>) -> Self
fn from(l: Local<'s, Int16Array>) -> Self
Source§impl<'s> From<Local<'s, Int16Array>> for Local<'s, Object>
impl<'s> From<Local<'s, Int16Array>> for Local<'s, Object>
Source§fn from(l: Local<'s, Int16Array>) -> Self
fn from(l: Local<'s, Int16Array>) -> Self
Source§impl<'s> From<Local<'s, Int16Array>> for Local<'s, TypedArray>
impl<'s> From<Local<'s, Int16Array>> for Local<'s, TypedArray>
Source§fn from(l: Local<'s, Int16Array>) -> Self
fn from(l: Local<'s, Int16Array>) -> Self
Source§impl<'s> From<Local<'s, Int16Array>> for Local<'s, Value>
impl<'s> From<Local<'s, Int16Array>> for Local<'s, Value>
Source§fn from(l: Local<'s, Int16Array>) -> Self
fn from(l: Local<'s, Int16Array>) -> Self
Source§impl<'s> From<Local<'s, Int32Array>> for Local<'s, ArrayBufferView>
impl<'s> From<Local<'s, Int32Array>> for Local<'s, ArrayBufferView>
Source§fn from(l: Local<'s, Int32Array>) -> Self
fn from(l: Local<'s, Int32Array>) -> Self
Source§impl<'s> From<Local<'s, Int32Array>> for Local<'s, Data>
impl<'s> From<Local<'s, Int32Array>> for Local<'s, Data>
Source§fn from(l: Local<'s, Int32Array>) -> Self
fn from(l: Local<'s, Int32Array>) -> Self
Source§impl<'s> From<Local<'s, Int32Array>> for Local<'s, Object>
impl<'s> From<Local<'s, Int32Array>> for Local<'s, Object>
Source§fn from(l: Local<'s, Int32Array>) -> Self
fn from(l: Local<'s, Int32Array>) -> Self
Source§impl<'s> From<Local<'s, Int32Array>> for Local<'s, TypedArray>
impl<'s> From<Local<'s, Int32Array>> for Local<'s, TypedArray>
Source§fn from(l: Local<'s, Int32Array>) -> Self
fn from(l: Local<'s, Int32Array>) -> Self
Source§impl<'s> From<Local<'s, Int32Array>> for Local<'s, Value>
impl<'s> From<Local<'s, Int32Array>> for Local<'s, Value>
Source§fn from(l: Local<'s, Int32Array>) -> Self
fn from(l: Local<'s, Int32Array>) -> Self
Source§impl<'s> From<Local<'s, ModuleRequest>> for Local<'s, Data>
impl<'s> From<Local<'s, ModuleRequest>> for Local<'s, Data>
Source§fn from(l: Local<'s, ModuleRequest>) -> Self
fn from(l: Local<'s, ModuleRequest>) -> Self
Source§impl<'s> From<Local<'s, NumberObject>> for Local<'s, Data>
impl<'s> From<Local<'s, NumberObject>> for Local<'s, Data>
Source§fn from(l: Local<'s, NumberObject>) -> Self
fn from(l: Local<'s, NumberObject>) -> Self
Source§impl<'s> From<Local<'s, NumberObject>> for Local<'s, Object>
impl<'s> From<Local<'s, NumberObject>> for Local<'s, Object>
Source§fn from(l: Local<'s, NumberObject>) -> Self
fn from(l: Local<'s, NumberObject>) -> Self
Source§impl<'s> From<Local<'s, NumberObject>> for Local<'s, Value>
impl<'s> From<Local<'s, NumberObject>> for Local<'s, Value>
Source§fn from(l: Local<'s, NumberObject>) -> Self
fn from(l: Local<'s, NumberObject>) -> Self
Source§impl<'s> From<Local<'s, ObjectTemplate>> for Local<'s, Data>
impl<'s> From<Local<'s, ObjectTemplate>> for Local<'s, Data>
Source§fn from(l: Local<'s, ObjectTemplate>) -> Self
fn from(l: Local<'s, ObjectTemplate>) -> Self
Source§impl<'s> From<Local<'s, ObjectTemplate>> for Local<'s, Template>
impl<'s> From<Local<'s, ObjectTemplate>> for Local<'s, Template>
Source§fn from(l: Local<'s, ObjectTemplate>) -> Self
fn from(l: Local<'s, ObjectTemplate>) -> Self
Source§impl<'s> From<Local<'s, PrimitiveArray>> for Local<'s, Data>
impl<'s> From<Local<'s, PrimitiveArray>> for Local<'s, Data>
Source§fn from(l: Local<'s, PrimitiveArray>) -> Self
fn from(l: Local<'s, PrimitiveArray>) -> Self
Source§impl<'s> From<Local<'s, PromiseResolver>> for Local<'s, Data>
impl<'s> From<Local<'s, PromiseResolver>> for Local<'s, Data>
Source§fn from(l: Local<'s, PromiseResolver>) -> Self
fn from(l: Local<'s, PromiseResolver>) -> Self
Source§impl<'s> From<Local<'s, PromiseResolver>> for Local<'s, Object>
impl<'s> From<Local<'s, PromiseResolver>> for Local<'s, Object>
Source§fn from(l: Local<'s, PromiseResolver>) -> Self
fn from(l: Local<'s, PromiseResolver>) -> Self
Source§impl<'s> From<Local<'s, PromiseResolver>> for Local<'s, Value>
impl<'s> From<Local<'s, PromiseResolver>> for Local<'s, Value>
Source§fn from(l: Local<'s, PromiseResolver>) -> Self
fn from(l: Local<'s, PromiseResolver>) -> Self
Source§fn from(l: Local<'s, SharedArrayBuffer>) -> Self
fn from(l: Local<'s, SharedArrayBuffer>) -> Self
Source§fn from(l: Local<'s, SharedArrayBuffer>) -> Self
fn from(l: Local<'s, SharedArrayBuffer>) -> Self
Source§fn from(l: Local<'s, SharedArrayBuffer>) -> Self
fn from(l: Local<'s, SharedArrayBuffer>) -> Self
Source§impl<'s> From<Local<'s, StringObject>> for Local<'s, Data>
impl<'s> From<Local<'s, StringObject>> for Local<'s, Data>
Source§fn from(l: Local<'s, StringObject>) -> Self
fn from(l: Local<'s, StringObject>) -> Self
Source§impl<'s> From<Local<'s, StringObject>> for Local<'s, Object>
impl<'s> From<Local<'s, StringObject>> for Local<'s, Object>
Source§fn from(l: Local<'s, StringObject>) -> Self
fn from(l: Local<'s, StringObject>) -> Self
Source§impl<'s> From<Local<'s, StringObject>> for Local<'s, Value>
impl<'s> From<Local<'s, StringObject>> for Local<'s, Value>
Source§fn from(l: Local<'s, StringObject>) -> Self
fn from(l: Local<'s, StringObject>) -> Self
Source§impl<'s> From<Local<'s, SymbolObject>> for Local<'s, Data>
impl<'s> From<Local<'s, SymbolObject>> for Local<'s, Data>
Source§fn from(l: Local<'s, SymbolObject>) -> Self
fn from(l: Local<'s, SymbolObject>) -> Self
Source§impl<'s> From<Local<'s, SymbolObject>> for Local<'s, Object>
impl<'s> From<Local<'s, SymbolObject>> for Local<'s, Object>
Source§fn from(l: Local<'s, SymbolObject>) -> Self
fn from(l: Local<'s, SymbolObject>) -> Self
Source§impl<'s> From<Local<'s, SymbolObject>> for Local<'s, Value>
impl<'s> From<Local<'s, SymbolObject>> for Local<'s, Value>
Source§fn from(l: Local<'s, SymbolObject>) -> Self
fn from(l: Local<'s, SymbolObject>) -> Self
Source§impl<'s> From<Local<'s, TypedArray>> for Local<'s, ArrayBufferView>
impl<'s> From<Local<'s, TypedArray>> for Local<'s, ArrayBufferView>
Source§fn from(l: Local<'s, TypedArray>) -> Self
fn from(l: Local<'s, TypedArray>) -> Self
Source§impl<'s> From<Local<'s, TypedArray>> for Local<'s, Data>
impl<'s> From<Local<'s, TypedArray>> for Local<'s, Data>
Source§fn from(l: Local<'s, TypedArray>) -> Self
fn from(l: Local<'s, TypedArray>) -> Self
Source§impl<'s> From<Local<'s, TypedArray>> for Local<'s, Object>
impl<'s> From<Local<'s, TypedArray>> for Local<'s, Object>
Source§fn from(l: Local<'s, TypedArray>) -> Self
fn from(l: Local<'s, TypedArray>) -> Self
Source§impl<'s> From<Local<'s, TypedArray>> for Local<'s, Value>
impl<'s> From<Local<'s, TypedArray>> for Local<'s, Value>
Source§fn from(l: Local<'s, TypedArray>) -> Self
fn from(l: Local<'s, TypedArray>) -> Self
Source§impl<'s> From<Local<'s, Uint16Array>> for Local<'s, ArrayBufferView>
impl<'s> From<Local<'s, Uint16Array>> for Local<'s, ArrayBufferView>
Source§fn from(l: Local<'s, Uint16Array>) -> Self
fn from(l: Local<'s, Uint16Array>) -> Self
Source§impl<'s> From<Local<'s, Uint16Array>> for Local<'s, Data>
impl<'s> From<Local<'s, Uint16Array>> for Local<'s, Data>
Source§fn from(l: Local<'s, Uint16Array>) -> Self
fn from(l: Local<'s, Uint16Array>) -> Self
Source§impl<'s> From<Local<'s, Uint16Array>> for Local<'s, Object>
impl<'s> From<Local<'s, Uint16Array>> for Local<'s, Object>
Source§fn from(l: Local<'s, Uint16Array>) -> Self
fn from(l: Local<'s, Uint16Array>) -> Self
Source§impl<'s> From<Local<'s, Uint16Array>> for Local<'s, TypedArray>
impl<'s> From<Local<'s, Uint16Array>> for Local<'s, TypedArray>
Source§fn from(l: Local<'s, Uint16Array>) -> Self
fn from(l: Local<'s, Uint16Array>) -> Self
Source§impl<'s> From<Local<'s, Uint16Array>> for Local<'s, Value>
impl<'s> From<Local<'s, Uint16Array>> for Local<'s, Value>
Source§fn from(l: Local<'s, Uint16Array>) -> Self
fn from(l: Local<'s, Uint16Array>) -> Self
Source§impl<'s> From<Local<'s, Uint32Array>> for Local<'s, ArrayBufferView>
impl<'s> From<Local<'s, Uint32Array>> for Local<'s, ArrayBufferView>
Source§fn from(l: Local<'s, Uint32Array>) -> Self
fn from(l: Local<'s, Uint32Array>) -> Self
Source§impl<'s> From<Local<'s, Uint32Array>> for Local<'s, Data>
impl<'s> From<Local<'s, Uint32Array>> for Local<'s, Data>
Source§fn from(l: Local<'s, Uint32Array>) -> Self
fn from(l: Local<'s, Uint32Array>) -> Self
Source§impl<'s> From<Local<'s, Uint32Array>> for Local<'s, Object>
impl<'s> From<Local<'s, Uint32Array>> for Local<'s, Object>
Source§fn from(l: Local<'s, Uint32Array>) -> Self
fn from(l: Local<'s, Uint32Array>) -> Self
Source§impl<'s> From<Local<'s, Uint32Array>> for Local<'s, TypedArray>
impl<'s> From<Local<'s, Uint32Array>> for Local<'s, TypedArray>
Source§fn from(l: Local<'s, Uint32Array>) -> Self
fn from(l: Local<'s, Uint32Array>) -> Self
Source§impl<'s> From<Local<'s, Uint32Array>> for Local<'s, Value>
impl<'s> From<Local<'s, Uint32Array>> for Local<'s, Value>
Source§fn from(l: Local<'s, Uint32Array>) -> Self
fn from(l: Local<'s, Uint32Array>) -> Self
Source§impl<'s> From<Local<'s, Uint8Array>> for Local<'s, ArrayBufferView>
impl<'s> From<Local<'s, Uint8Array>> for Local<'s, ArrayBufferView>
Source§fn from(l: Local<'s, Uint8Array>) -> Self
fn from(l: Local<'s, Uint8Array>) -> Self
Source§impl<'s> From<Local<'s, Uint8Array>> for Local<'s, Data>
impl<'s> From<Local<'s, Uint8Array>> for Local<'s, Data>
Source§fn from(l: Local<'s, Uint8Array>) -> Self
fn from(l: Local<'s, Uint8Array>) -> Self
Source§impl<'s> From<Local<'s, Uint8Array>> for Local<'s, Object>
impl<'s> From<Local<'s, Uint8Array>> for Local<'s, Object>
Source§fn from(l: Local<'s, Uint8Array>) -> Self
fn from(l: Local<'s, Uint8Array>) -> Self
Source§impl<'s> From<Local<'s, Uint8Array>> for Local<'s, TypedArray>
impl<'s> From<Local<'s, Uint8Array>> for Local<'s, TypedArray>
Source§fn from(l: Local<'s, Uint8Array>) -> Self
fn from(l: Local<'s, Uint8Array>) -> Self
Source§impl<'s> From<Local<'s, Uint8Array>> for Local<'s, Value>
impl<'s> From<Local<'s, Uint8Array>> for Local<'s, Value>
Source§fn from(l: Local<'s, Uint8Array>) -> Self
fn from(l: Local<'s, Uint8Array>) -> Self
Source§impl<'s> From<Local<'s, Uint8ClampedArray>> for Local<'s, ArrayBufferView>
impl<'s> From<Local<'s, Uint8ClampedArray>> for Local<'s, ArrayBufferView>
Source§fn from(l: Local<'s, Uint8ClampedArray>) -> Self
fn from(l: Local<'s, Uint8ClampedArray>) -> Self
Source§impl<'s> From<Local<'s, Uint8ClampedArray>> for Local<'s, Data>
impl<'s> From<Local<'s, Uint8ClampedArray>> for Local<'s, Data>
Source§fn from(l: Local<'s, Uint8ClampedArray>) -> Self
fn from(l: Local<'s, Uint8ClampedArray>) -> Self
Source§impl<'s> From<Local<'s, Uint8ClampedArray>> for Local<'s, Object>
impl<'s> From<Local<'s, Uint8ClampedArray>> for Local<'s, Object>
Source§fn from(l: Local<'s, Uint8ClampedArray>) -> Self
fn from(l: Local<'s, Uint8ClampedArray>) -> Self
Source§impl<'s> From<Local<'s, Uint8ClampedArray>> for Local<'s, TypedArray>
impl<'s> From<Local<'s, Uint8ClampedArray>> for Local<'s, TypedArray>
Source§fn from(l: Local<'s, Uint8ClampedArray>) -> Self
fn from(l: Local<'s, Uint8ClampedArray>) -> Self
Source§impl<'s> From<Local<'s, Uint8ClampedArray>> for Local<'s, Value>
impl<'s> From<Local<'s, Uint8ClampedArray>> for Local<'s, Value>
Source§fn from(l: Local<'s, Uint8ClampedArray>) -> Self
fn from(l: Local<'s, Uint8ClampedArray>) -> Self
Source§impl<'s> From<Local<'s, UnboundModuleScript>> for Local<'s, Data>
impl<'s> From<Local<'s, UnboundModuleScript>> for Local<'s, Data>
Source§fn from(l: Local<'s, UnboundModuleScript>) -> Self
fn from(l: Local<'s, UnboundModuleScript>) -> Self
Source§impl<'s> From<Local<'s, WasmMemoryObject>> for Local<'s, Data>
impl<'s> From<Local<'s, WasmMemoryObject>> for Local<'s, Data>
Source§fn from(l: Local<'s, WasmMemoryObject>) -> Self
fn from(l: Local<'s, WasmMemoryObject>) -> Self
Source§impl<'s> From<Local<'s, WasmMemoryObject>> for Local<'s, Object>
impl<'s> From<Local<'s, WasmMemoryObject>> for Local<'s, Object>
Source§fn from(l: Local<'s, WasmMemoryObject>) -> Self
fn from(l: Local<'s, WasmMemoryObject>) -> Self
Source§impl<'s> From<Local<'s, WasmMemoryObject>> for Local<'s, Value>
impl<'s> From<Local<'s, WasmMemoryObject>> for Local<'s, Value>
Source§fn from(l: Local<'s, WasmMemoryObject>) -> Self
fn from(l: Local<'s, WasmMemoryObject>) -> Self
Source§impl<'s> From<Local<'s, WasmModuleObject>> for Local<'s, Data>
impl<'s> From<Local<'s, WasmModuleObject>> for Local<'s, Data>
Source§fn from(l: Local<'s, WasmModuleObject>) -> Self
fn from(l: Local<'s, WasmModuleObject>) -> Self
Source§impl<'s> From<Local<'s, WasmModuleObject>> for Local<'s, Object>
impl<'s> From<Local<'s, WasmModuleObject>> for Local<'s, Object>
Source§fn from(l: Local<'s, WasmModuleObject>) -> Self
fn from(l: Local<'s, WasmModuleObject>) -> Self
Source§impl<'s> From<Local<'s, WasmModuleObject>> for Local<'s, Value>
impl<'s> From<Local<'s, WasmModuleObject>> for Local<'s, Value>
Source§fn from(l: Local<'s, WasmModuleObject>) -> Self
fn from(l: Local<'s, WasmModuleObject>) -> Self
Source§impl<'a, 's: 'a, T> Handle for &'a Local<'s, T>
impl<'a, 's: 'a, T> Handle for &'a Local<'s, T>
type Data = T
Source§fn open<'a>(&'a self, isolate: &mut Isolate) -> &'a Self::Data
fn open<'a>(&'a self, isolate: &mut Isolate) -> &'a Self::Data
Local
handle. Read moreSource§unsafe fn get_unchecked(&self) -> &Self::Data
unsafe fn get_unchecked(&self) -> &Self::Data
Isolate
. Read moreSource§impl<'s, T> Handle for Local<'s, T>
impl<'s, T> Handle for Local<'s, T>
type Data = T
Source§fn open<'a>(&'a self, isolate: &mut Isolate) -> &'a Self::Data
fn open<'a>(&'a self, isolate: &mut Isolate) -> &'a Self::Data
Local
handle. Read moreSource§unsafe fn get_unchecked(&self) -> &Self::Data
unsafe fn get_unchecked(&self) -> &Self::Data
Isolate
. Read moreSource§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, BigInt64Array>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, BigInt64Array>
Source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, BigUint64Array>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, BigUint64Array>
Source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Float32Array>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Float32Array>
Source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Float64Array>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Float64Array>
Source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Int16Array>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Int16Array>
Source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Int32Array>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Int32Array>
Source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, TypedArray>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, TypedArray>
Source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint16Array>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint16Array>
Source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint32Array>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint32Array>
Source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint8Array>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint8Array>
Source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint8ClampedArray>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint8ClampedArray>
Source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, BigInt64Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, BigInt64Array>
Source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, BigUint64Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, BigUint64Array>
Source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Float32Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Float32Array>
Source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Float64Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Float64Array>
Source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Int16Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Int16Array>
Source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Int32Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Int32Array>
Source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint16Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint16Array>
Source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint32Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint32Array>
Source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint8Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint8Array>
Source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint8ClampedArray>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint8ClampedArray>
impl<'s, T> Copy for Local<'s, T>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)