Struct wasmtime::ExternRef [−][src]
pub struct ExternRef { /* fields omitted */ }Represents an opaque reference to any data within WebAssembly.
Implementations
impl ExternRef[src]
impl ExternRef[src]pub fn new<T>(value: T) -> ExternRef where
    T: 'static + Any, [src]
T: 'static + Any,
Creates a new instance of ExternRef wrapping the given value.
pub fn data(&self) -> &dyn Any[src]
Get the underlying data for this ExternRef.
pub fn strong_count(&self) -> usize[src]
Get the strong reference count for this ExternRef.
pub fn ptr_eq(&self, other: &ExternRef) -> bool[src]
Does this ExternRef point to the same inner value as other?
This is only pointer equality, and does not run any inner value’s
Eq implementation.