Struct unc_vm_vm::VMExternRef 
source · 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 const fn null() -> VMExternRef
 
pub const fn null() -> VMExternRef
New null extern ref
sourcepub fn new<T>(value: T) -> VMExternRef
 
pub fn new<T>(value: T) -> VMExternRef
Make a new extern reference
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.
sourcepub fn ref_clone(&self) -> VMExternRef
 
pub fn ref_clone(&self) -> VMExternRef
A deep copy of the reference, increments the strong count.
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§fn from(other: ExternRef) -> VMExternRef
 
fn from(other: ExternRef) -> VMExternRef
Converts to this type from the input type.
source§impl NativeWasmType for VMExternRef
 
impl NativeWasmType for VMExternRef
§type Abi = VMExternRef
 
type Abi = VMExternRef
The ABI for this type (i32, i64, f32, f64)
source§fn from_binary(bits: i128) -> VMExternRef
 
fn from_binary(bits: i128) -> VMExternRef
Convert to self from i128 binary representation.
source§fn to_value<T>(self) -> Value<T>where
    T: WasmValueType,
 
fn to_value<T>(self) -> Value<T>where
    T: WasmValueType,
Convert self to a 
Value.source§impl PartialEq for VMExternRef
 
impl PartialEq for VMExternRef
source§fn eq(&self, other: &VMExternRef) -> bool
 
fn eq(&self, other: &VMExternRef) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.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
§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<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.