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
sourceimpl Clone for EntityType
impl Clone for EntityType
sourcefn clone(&self) -> EntityType
fn clone(&self) -> EntityType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for EntityType
impl Debug for EntityType
sourceimpl Encode for EntityType
impl Encode for EntityType
sourceimpl From<GlobalType> for EntityType
impl From<GlobalType> for EntityType
sourcefn from(t: GlobalType) -> Self
fn from(t: GlobalType) -> Self
Converts to this type from the input type.
sourceimpl From<MemoryType> for EntityType
impl From<MemoryType> for EntityType
sourcefn from(t: MemoryType) -> Self
fn from(t: MemoryType) -> Self
Converts to this type from the input type.
sourceimpl From<TableType> for EntityType
impl From<TableType> for EntityType
sourceimpl From<TagType> for EntityType
impl From<TagType> for EntityType
sourceimpl PartialEq<EntityType> for EntityType
impl PartialEq<EntityType> for EntityType
sourcefn eq(&self, other: &EntityType) -> bool
fn eq(&self, other: &EntityType) -> bool
impl Copy for EntityType
impl Eq for EntityType
impl StructuralEq for EntityType
impl StructuralPartialEq for EntityType
Auto Trait Implementations
impl RefUnwindSafe for EntityType
impl Send for EntityType
impl Sync for EntityType
impl Unpin for EntityType
impl UnwindSafe for EntityType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more