Enum cranelift_wasm::EntityType
source · pub enum EntityType {
Global(Global),
Memory(Memory),
Tag(Tag),
Table(Table),
Function(SignatureIndex),
}
Expand description
A type of an item in a wasm module where an item is typically something that can be exported.
Variants§
Global(Global)
A global variable with the specified content type
Memory(Memory)
A linear memory with the specified limits
Tag(Tag)
An event definition.
Table(Table)
A table with the specified element type and limits
Function(SignatureIndex)
A function type where the index points to the type section and records a function signature.
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<'de> Deserialize<'de> for EntityType
impl<'de> Deserialize<'de> for EntityType
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<EntityType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<EntityType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for EntityType
impl Serialize for EntityType
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more