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<EntityType> for EntityType
impl PartialEq<EntityType> 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 ==
.