pub struct WasmTag { /* private fields */ }Expand description
A WebAssembly tag.
Implementations§
Source§impl Tag
impl Tag
Sourcepub fn new(store: impl AsContextMut, ty: &TagType) -> Result<Tag, Error>
pub fn new(store: impl AsContextMut, ty: &TagType) -> Result<Tag, Error>
Create a new tag instance from a given TagType.
§Errors
This function will return an OutOfMemory error when
memory allocation fails. See the OutOfMemory type’s documentation for
details on Wasmtime’s out-of-memory handling.
Sourcepub fn debug_index_in_store(&self) -> u64
pub fn debug_index_in_store(&self) -> u64
Returns a stable identifier for this tag within its store.
This allows distinguishing tags when introspecting them e.g. via debug APIs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnsafeUnpin for Tag
impl UnwindSafe for Tag
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