Enum wasm_encoder::EntityType
source · pub enum EntityType {
Function(u32),
Table(TableType),
Memory(MemoryType),
Global(GlobalType),
Tag(TagType),
}
Expand description
The type of an entity.
Variants§
Function(u32)
A function type.
The value is an index into the types section.
Table(TableType)
A table type.
Memory(MemoryType)
A memory type.
Global(GlobalType)
A global type.
Tag(TagType)
A tag type.
This variant is used with the exception handling proposal.
Trait Implementations§
source§impl Clone for EntityType
impl Clone for EntityType
source§fn clone(&self) -> EntityType
fn clone(&self) -> EntityType
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 EntityType
impl Debug for EntityType
source§impl Encode for EntityType
impl Encode for EntityType
source§impl From<GlobalType> for EntityType
impl From<GlobalType> for EntityType
source§fn from(t: GlobalType) -> Self
fn from(t: GlobalType) -> Self
Converts to this type from the input type.
source§impl From<MemoryType> for EntityType
impl From<MemoryType> for EntityType
source§fn from(t: MemoryType) -> Self
fn from(t: MemoryType) -> Self
Converts to this type from the input type.
source§impl From<TableType> for EntityType
impl From<TableType> for EntityType
source§impl From<TagType> for EntityType
impl From<TagType> for EntityType
source§impl PartialEq for EntityType
impl PartialEq for EntityType
source§fn eq(&self, other: &EntityType) -> bool
fn eq(&self, other: &EntityType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<TypeRef> for EntityType
Available on crate feature wasmparser
only.
impl TryFrom<TypeRef> for EntityType
Available on crate feature
wasmparser
only.impl Copy for EntityType
impl Eq for EntityType
impl StructuralPartialEq for EntityType
Auto Trait Implementations§
impl Freeze for EntityType
impl RefUnwindSafe for EntityType
impl Send for EntityType
impl Sync for EntityType
impl Unpin for EntityType
impl UnwindSafe for EntityType
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)