Struct wasmtime_runtime::ExternRefHostDataTable
source · pub struct ExternRefHostDataTable { /* private fields */ }
Expand description
Side table for each externref
’s host data value.
Implementations§
source§impl ExternRefHostDataTable
impl ExternRefHostDataTable
sourcepub fn alloc(
&mut self,
value: Box<dyn Any + Send + Sync>
) -> ExternRefHostDataId
pub fn alloc( &mut self, value: Box<dyn Any + Send + Sync> ) -> ExternRefHostDataId
Allocate a new externref
host data value.
sourcepub fn dealloc(&mut self, id: ExternRefHostDataId) -> Box<dyn Any + Send + Sync>
pub fn dealloc(&mut self, id: ExternRefHostDataId) -> Box<dyn Any + Send + Sync>
Deallocate an externref
host data value.
Trait Implementations§
source§impl Default for ExternRefHostDataTable
impl Default for ExternRefHostDataTable
source§fn default() -> ExternRefHostDataTable
fn default() -> ExternRefHostDataTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExternRefHostDataTable
impl !RefUnwindSafe for ExternRefHostDataTable
impl Send for ExternRefHostDataTable
impl Sync for ExternRefHostDataTable
impl Unpin for ExternRefHostDataTable
impl !UnwindSafe for ExternRefHostDataTable
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
Mutably borrows from an owned value. Read more