pub struct VMExternRef(/* private fields */);
Expand description
This type does not do reference counting automatically, reference counting can be done with
Self::ref_clone
and Self::ref_drop
.
Implementations§
Source§impl VMExternRef
impl VMExternRef
Sourcepub fn ref_inc_by(&self, val: usize)
pub fn ref_inc_by(&self, val: usize)
A low-level function to increment the strong-count a given number of times.
This is used as an optimization when implementing some low-level VM primitives.
If you’re using this type directly for whatever reason, you probably want
Self::ref_clone
instead.
Trait Implementations§
Source§impl Clone for VMExternRef
impl Clone for VMExternRef
Source§fn clone(&self) -> VMExternRef
fn clone(&self) -> VMExternRef
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VMExternRef
impl Debug for VMExternRef
Source§impl From<ExternRef> for VMExternRef
impl From<ExternRef> for VMExternRef
Source§impl From<VMExternRef> for ExternRef
impl From<VMExternRef> for ExternRef
Source§fn from(other: VMExternRef) -> Self
fn from(other: VMExternRef) -> Self
Converts to this type from the input type.
Source§impl NativeWasmType for VMExternRef
impl NativeWasmType for VMExternRef
Source§type Abi = VMExternRef
type Abi = VMExternRef
The ABI for this type (i32, i64, f32, f64)
Source§fn from_binary(bits: i128) -> Self
fn from_binary(bits: i128) -> Self
Convert to self from i128 binary representation.
Source§fn to_value<T: WasmValueType>(self) -> Value<T>
fn to_value<T: WasmValueType>(self) -> Value<T>
Convert self to a
Value
.Source§impl PartialEq for VMExternRef
impl PartialEq for VMExternRef
impl Copy for VMExternRef
impl Eq for VMExternRef
impl StructuralPartialEq for VMExternRef
Auto Trait Implementations§
impl Freeze for VMExternRef
impl !RefUnwindSafe for VMExternRef
impl !Send for VMExternRef
impl !Sync for VMExternRef
impl Unpin for VMExternRef
impl !UnwindSafe for VMExternRef
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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
Compare self to
key
and return true
if they are equal.