Struct wasmtime_environ::ModuleTypes
source · pub struct ModuleTypes { /* private fields */ }
Expand description
All types used in a core wasm module.
At this time this only contains function types. Note, though, that function
types are deduplicated within this ModuleTypes
.
Note that accesing this type is primarily done through the Index
implementations for this type.
Implementations§
source§impl ModuleTypes
impl ModuleTypes
sourcepub fn wasm_signatures(
&self,
) -> impl Iterator<Item = (SignatureIndex, &WasmFuncType)>
pub fn wasm_signatures( &self, ) -> impl Iterator<Item = (SignatureIndex, &WasmFuncType)>
Returns an iterator over all the wasm function signatures found within this module.
Trait Implementations§
source§impl Default for ModuleTypes
impl Default for ModuleTypes
source§fn default() -> ModuleTypes
fn default() -> ModuleTypes
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ModuleTypes
impl<'de> Deserialize<'de> for ModuleTypes
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 Index<SignatureIndex> for ModuleTypes
impl Index<SignatureIndex> for ModuleTypes
§type Output = WasmFuncType
type Output = WasmFuncType
The returned type after indexing.
source§fn index(&self, sig: SignatureIndex) -> &WasmFuncType
fn index(&self, sig: SignatureIndex) -> &WasmFuncType
Performs the indexing (
container[index]
) operation. Read moreAuto Trait Implementations§
impl Freeze for ModuleTypes
impl RefUnwindSafe for ModuleTypes
impl Send for ModuleTypes
impl Sync for ModuleTypes
impl Unpin for ModuleTypes
impl UnwindSafe for ModuleTypes
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