Enum wasmtime_environ::ModuleType [−][src]
pub enum ModuleType {
Function(SignatureIndex),
Module(ModuleTypeIndex),
Instance(InstanceTypeIndex),
}
Expand description
Different types that can appear in a module.
Note that each of these variants are intended to index further into a separate table.
Variants
Function(SignatureIndex)
Tuple Fields
Module(ModuleTypeIndex)
Tuple Fields
Instance(InstanceTypeIndex)
Tuple Fields
Implementations
Asserts this is a ModuleType::Function
, returning the underlying
SignatureIndex
.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ModuleType
impl Send for ModuleType
impl Sync for ModuleType
impl Unpin for ModuleType
impl UnwindSafe for ModuleType
Blanket Implementations
Mutably borrows from an owned value. Read more