pub struct Tag { /* private fields */ }Expand description
A WebAssembly tag.
Implementations§
Source§impl Tag
impl Tag
Sourcepub fn new(store: impl AsContextMut, ty: &TagType) -> Result<Tag>
Available on crate feature runtime only.
pub fn new(store: impl AsContextMut, ty: &TagType) -> Result<Tag>
runtime only.Create a new tag instance from a given TagType.
Sourcepub fn debug_index_in_store(&self) -> u64
Available on crate features runtime and debug only.
pub fn debug_index_in_store(&self) -> u64
runtime and debug only.Returns a stable identifier for this tag within its store.
This allows distinguishing tags when introspecting them e.g. via debug APIs.
Trait Implementations§
impl Copy for Tag
Available on crate feature
runtime only.Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more