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 more
sourceimpl 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
Performs the conversion.
sourceimpl From<MemoryType> for EntityType
impl From<MemoryType> for EntityType
sourcefn from(t: MemoryType) -> Self
fn from(t: MemoryType) -> Self
Performs the conversion.
sourceimpl From<TableType> for EntityType
impl From<TableType> for EntityType
sourceimpl PartialEq<EntityType> for EntityType
impl PartialEq<EntityType> for EntityType
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &EntityType) -> bool
fn ne(&self, other: &EntityType) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more