Enum cranelift_wasm::wasmparser::types::EntityType
source · pub enum EntityType {
Func(TypeId),
Table(TableType),
Memory(MemoryType),
Global(GlobalType),
Tag(TypeId),
}
Expand description
The entity type for imports and exports of a module.
Variants§
Func(TypeId)
The entity is a function.
Table(TableType)
The entity is a table.
Memory(MemoryType)
The entity is a memory.
Global(GlobalType)
The entity is a global.
Tag(TypeId)
The entity is a tag.
Implementations§
source§impl EntityType
impl EntityType
sourcepub fn is_subtype_of(
a: &EntityType,
at: TypesRef<'_>,
b: &EntityType,
bt: TypesRef<'_>
) -> bool
pub fn is_subtype_of( a: &EntityType, at: TypesRef<'_>, b: &EntityType, bt: TypesRef<'_> ) -> bool
Determines if entity type a
is a subtype of b
.
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 more