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§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