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
sourceimpl 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
sourceimpl Default for ModuleTypes
impl Default for ModuleTypes
sourcefn default() -> ModuleTypes
fn default() -> ModuleTypes
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ModuleTypes
impl<'de> Deserialize<'de> for ModuleTypes
sourcefn 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
sourceimpl Index<SignatureIndex> for ModuleTypes
impl Index<SignatureIndex> for ModuleTypes
type Output = WasmFuncType
type Output = WasmFuncType
The returned type after indexing.
sourcefn index(&self, sig: SignatureIndex) -> &WasmFuncType
fn index(&self, sig: SignatureIndex) -> &WasmFuncType
Performs the indexing (container[index]
) operation. Read more
sourceimpl Serialize for ModuleTypes
impl Serialize for ModuleTypes
Auto Trait Implementations
impl RefUnwindSafe for ModuleTypes
impl Send for ModuleTypes
impl Sync for ModuleTypes
impl Unpin for ModuleTypes
impl UnwindSafe for ModuleTypes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more