Enum wasmtime_environ::ModuleType
source · pub enum ModuleType {
Function(ModuleInternedTypeIndex),
}
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(ModuleInternedTypeIndex)
Implementations§
source§impl ModuleType
impl ModuleType
sourcepub fn unwrap_function(&self) -> ModuleInternedTypeIndex
pub fn unwrap_function(&self) -> ModuleInternedTypeIndex
Asserts this is a ModuleType::Function
, returning the underlying
SignatureIndex
.
Trait Implementations§
source§impl Clone for ModuleType
impl Clone for ModuleType
source§fn clone(&self) -> ModuleType
fn clone(&self) -> ModuleType
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 ModuleType
impl Debug for ModuleType
source§impl<'de> Deserialize<'de> for ModuleType
impl<'de> Deserialize<'de> for ModuleType
source§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
source§impl Serialize for ModuleType
impl Serialize for ModuleType
impl Copy for ModuleType
Auto Trait Implementations§
impl Freeze for ModuleType
impl RefUnwindSafe for ModuleType
impl Send for ModuleType
impl Sync for ModuleType
impl Unpin for ModuleType
impl UnwindSafe for ModuleType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more