Enum wasmtime_environ::ModuleType [−][src]
pub enum ModuleType { Function(SignatureIndex), Module(ModuleTypeIndex), Instance(InstanceTypeIndex), }
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)
Module(ModuleTypeIndex)
Instance(InstanceTypeIndex)
Implementations
impl ModuleType
[src]
impl ModuleType
[src]pub fn unwrap_function(&self) -> SignatureIndex
[src]
Asserts this is a ModuleType::Function
, returning the underlying
SignatureIndex
.
Trait Implementations
impl Clone for ModuleType
[src]
impl Clone for ModuleType
[src]fn clone(&self) -> ModuleType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for ModuleType
[src]
impl<'de> Deserialize<'de> for ModuleType
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for ModuleType
[src]
impl Serialize for ModuleType
[src]