#[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§
Trait Implementations§
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>) -> Local<'s, ArrayBufferView>
fn from(l: Local<'s, BigInt64Array>) -> Local<'s, ArrayBufferView>
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>) -> Local<'s, TypedArray>
fn from(l: Local<'s, BigInt64Array>) -> Local<'s, TypedArray>
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>) -> Local<'s, ArrayBufferView>
fn from(l: Local<'s, BigUint64Array>) -> Local<'s, ArrayBufferView>
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>) -> Local<'s, TypedArray>
fn from(l: Local<'s, BigUint64Array>) -> Local<'s, TypedArray>
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>) -> Local<'s, ArrayBufferView>
fn from(l: Local<'s, Float32Array>) -> Local<'s, ArrayBufferView>
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>) -> Local<'s, TypedArray>
fn from(l: Local<'s, Float32Array>) -> Local<'s, TypedArray>
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>) -> Local<'s, ArrayBufferView>
fn from(l: Local<'s, Float64Array>) -> Local<'s, ArrayBufferView>
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>) -> Local<'s, TypedArray>
fn from(l: Local<'s, Float64Array>) -> Local<'s, TypedArray>
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>) -> Local<'s, ArrayBufferView>
fn from(l: Local<'s, Int16Array>) -> Local<'s, ArrayBufferView>
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>) -> Local<'s, TypedArray>
fn from(l: Local<'s, Int16Array>) -> Local<'s, TypedArray>
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>) -> Local<'s, ArrayBufferView>
fn from(l: Local<'s, Int32Array>) -> Local<'s, ArrayBufferView>
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>) -> Local<'s, TypedArray>
fn from(l: Local<'s, Int32Array>) -> Local<'s, TypedArray>
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>) -> Local<'s, ArrayBufferView>
fn from(l: Local<'s, TypedArray>) -> Local<'s, ArrayBufferView>
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>) -> Local<'s, ArrayBufferView>
fn from(l: Local<'s, Uint16Array>) -> Local<'s, ArrayBufferView>
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>) -> Local<'s, TypedArray>
fn from(l: Local<'s, Uint16Array>) -> Local<'s, TypedArray>
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>) -> Local<'s, ArrayBufferView>
fn from(l: Local<'s, Uint32Array>) -> Local<'s, ArrayBufferView>
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>) -> Local<'s, TypedArray>
fn from(l: Local<'s, Uint32Array>) -> Local<'s, TypedArray>
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>) -> Local<'s, ArrayBufferView>
fn from(l: Local<'s, Uint8Array>) -> Local<'s, ArrayBufferView>
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>) -> Local<'s, TypedArray>
fn from(l: Local<'s, Uint8Array>) -> Local<'s, TypedArray>
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>) -> Local<'s, ArrayBufferView>
fn from(l: Local<'s, Uint8ClampedArray>) -> Local<'s, ArrayBufferView>
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>) -> Local<'s, TypedArray>
fn from(l: Local<'s, Uint8ClampedArray>) -> Local<'s, TypedArray>
source§impl<'a, 's, T> Handle for &'a Local<'s, T>where
's: 'a,
impl<'a, 's, T> Handle for &'a Local<'s, T>where
's: 'a,
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§fn try_from(
l: Local<'s, ArrayBufferView>,
) -> Result<Local<'s, BigInt64Array>, <Local<'s, BigInt64Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
fn try_from( l: Local<'s, ArrayBufferView>, ) -> Result<Local<'s, BigInt64Array>, <Local<'s, BigInt64Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, BigUint64Array>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, BigUint64Array>
source§fn try_from(
l: Local<'s, ArrayBufferView>,
) -> Result<Local<'s, BigUint64Array>, <Local<'s, BigUint64Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
fn try_from( l: Local<'s, ArrayBufferView>, ) -> Result<Local<'s, BigUint64Array>, <Local<'s, BigUint64Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Float32Array>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Float32Array>
source§fn try_from(
l: Local<'s, ArrayBufferView>,
) -> Result<Local<'s, Float32Array>, <Local<'s, Float32Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
fn try_from( l: Local<'s, ArrayBufferView>, ) -> Result<Local<'s, Float32Array>, <Local<'s, Float32Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Float64Array>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Float64Array>
source§fn try_from(
l: Local<'s, ArrayBufferView>,
) -> Result<Local<'s, Float64Array>, <Local<'s, Float64Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
fn try_from( l: Local<'s, ArrayBufferView>, ) -> Result<Local<'s, Float64Array>, <Local<'s, Float64Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Int16Array>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Int16Array>
source§fn try_from(
l: Local<'s, ArrayBufferView>,
) -> Result<Local<'s, Int16Array>, <Local<'s, Int16Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
fn try_from( l: Local<'s, ArrayBufferView>, ) -> Result<Local<'s, Int16Array>, <Local<'s, Int16Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Int32Array>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Int32Array>
source§fn try_from(
l: Local<'s, ArrayBufferView>,
) -> Result<Local<'s, Int32Array>, <Local<'s, Int32Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
fn try_from( l: Local<'s, ArrayBufferView>, ) -> Result<Local<'s, Int32Array>, <Local<'s, Int32Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, TypedArray>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, TypedArray>
source§fn try_from(
l: Local<'s, ArrayBufferView>,
) -> Result<Local<'s, TypedArray>, <Local<'s, TypedArray> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
fn try_from( l: Local<'s, ArrayBufferView>, ) -> Result<Local<'s, TypedArray>, <Local<'s, TypedArray> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint16Array>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint16Array>
source§fn try_from(
l: Local<'s, ArrayBufferView>,
) -> Result<Local<'s, Uint16Array>, <Local<'s, Uint16Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
fn try_from( l: Local<'s, ArrayBufferView>, ) -> Result<Local<'s, Uint16Array>, <Local<'s, Uint16Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint32Array>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint32Array>
source§fn try_from(
l: Local<'s, ArrayBufferView>,
) -> Result<Local<'s, Uint32Array>, <Local<'s, Uint32Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
fn try_from( l: Local<'s, ArrayBufferView>, ) -> Result<Local<'s, Uint32Array>, <Local<'s, Uint32Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint8Array>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint8Array>
source§fn try_from(
l: Local<'s, ArrayBufferView>,
) -> Result<Local<'s, Uint8Array>, <Local<'s, Uint8Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
fn try_from( l: Local<'s, ArrayBufferView>, ) -> Result<Local<'s, Uint8Array>, <Local<'s, Uint8Array> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
source§impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint8ClampedArray>
impl<'s> TryFrom<Local<'s, ArrayBufferView>> for Local<'s, Uint8ClampedArray>
source§fn try_from(
l: Local<'s, ArrayBufferView>,
) -> Result<Local<'s, Uint8ClampedArray>, <Local<'s, Uint8ClampedArray> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
fn try_from( l: Local<'s, ArrayBufferView>, ) -> Result<Local<'s, Uint8ClampedArray>, <Local<'s, Uint8ClampedArray> as TryFrom<Local<'s, ArrayBufferView>>>::Error>
source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, BigInt64Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, BigInt64Array>
source§fn try_from(
l: Local<'s, TypedArray>,
) -> Result<Local<'s, BigInt64Array>, <Local<'s, BigInt64Array> as TryFrom<Local<'s, TypedArray>>>::Error>
fn try_from( l: Local<'s, TypedArray>, ) -> Result<Local<'s, BigInt64Array>, <Local<'s, BigInt64Array> as TryFrom<Local<'s, TypedArray>>>::Error>
source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, BigUint64Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, BigUint64Array>
source§fn try_from(
l: Local<'s, TypedArray>,
) -> Result<Local<'s, BigUint64Array>, <Local<'s, BigUint64Array> as TryFrom<Local<'s, TypedArray>>>::Error>
fn try_from( l: Local<'s, TypedArray>, ) -> Result<Local<'s, BigUint64Array>, <Local<'s, BigUint64Array> as TryFrom<Local<'s, TypedArray>>>::Error>
source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Float32Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Float32Array>
source§fn try_from(
l: Local<'s, TypedArray>,
) -> Result<Local<'s, Float32Array>, <Local<'s, Float32Array> as TryFrom<Local<'s, TypedArray>>>::Error>
fn try_from( l: Local<'s, TypedArray>, ) -> Result<Local<'s, Float32Array>, <Local<'s, Float32Array> as TryFrom<Local<'s, TypedArray>>>::Error>
source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Float64Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Float64Array>
source§fn try_from(
l: Local<'s, TypedArray>,
) -> Result<Local<'s, Float64Array>, <Local<'s, Float64Array> as TryFrom<Local<'s, TypedArray>>>::Error>
fn try_from( l: Local<'s, TypedArray>, ) -> Result<Local<'s, Float64Array>, <Local<'s, Float64Array> as TryFrom<Local<'s, TypedArray>>>::Error>
source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Int16Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Int16Array>
source§fn try_from(
l: Local<'s, TypedArray>,
) -> Result<Local<'s, Int16Array>, <Local<'s, Int16Array> as TryFrom<Local<'s, TypedArray>>>::Error>
fn try_from( l: Local<'s, TypedArray>, ) -> Result<Local<'s, Int16Array>, <Local<'s, Int16Array> as TryFrom<Local<'s, TypedArray>>>::Error>
source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Int32Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Int32Array>
source§fn try_from(
l: Local<'s, TypedArray>,
) -> Result<Local<'s, Int32Array>, <Local<'s, Int32Array> as TryFrom<Local<'s, TypedArray>>>::Error>
fn try_from( l: Local<'s, TypedArray>, ) -> Result<Local<'s, Int32Array>, <Local<'s, Int32Array> as TryFrom<Local<'s, TypedArray>>>::Error>
source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint16Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint16Array>
source§fn try_from(
l: Local<'s, TypedArray>,
) -> Result<Local<'s, Uint16Array>, <Local<'s, Uint16Array> as TryFrom<Local<'s, TypedArray>>>::Error>
fn try_from( l: Local<'s, TypedArray>, ) -> Result<Local<'s, Uint16Array>, <Local<'s, Uint16Array> as TryFrom<Local<'s, TypedArray>>>::Error>
source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint32Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint32Array>
source§fn try_from(
l: Local<'s, TypedArray>,
) -> Result<Local<'s, Uint32Array>, <Local<'s, Uint32Array> as TryFrom<Local<'s, TypedArray>>>::Error>
fn try_from( l: Local<'s, TypedArray>, ) -> Result<Local<'s, Uint32Array>, <Local<'s, Uint32Array> as TryFrom<Local<'s, TypedArray>>>::Error>
source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint8Array>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint8Array>
source§fn try_from(
l: Local<'s, TypedArray>,
) -> Result<Local<'s, Uint8Array>, <Local<'s, Uint8Array> as TryFrom<Local<'s, TypedArray>>>::Error>
fn try_from( l: Local<'s, TypedArray>, ) -> Result<Local<'s, Uint8Array>, <Local<'s, Uint8Array> as TryFrom<Local<'s, TypedArray>>>::Error>
source§impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint8ClampedArray>
impl<'s> TryFrom<Local<'s, TypedArray>> for Local<'s, Uint8ClampedArray>
source§fn try_from(
l: Local<'s, TypedArray>,
) -> Result<Local<'s, Uint8ClampedArray>, <Local<'s, Uint8ClampedArray> as TryFrom<Local<'s, TypedArray>>>::Error>
fn try_from( l: Local<'s, TypedArray>, ) -> Result<Local<'s, Uint8ClampedArray>, <Local<'s, Uint8ClampedArray> as TryFrom<Local<'s, TypedArray>>>::Error>
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> FmtForward for T
impl<T> FmtForward for T
source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moresource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moresource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Tap for T
impl<T> Tap for T
source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read moresource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read moresource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read moresource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read moresource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read moresource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read moresource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.