Struct wasmtime_environ::ModuleTypesBuilder 
source · pub struct ModuleTypesBuilder { /* private fields */ }Expand description
A builder for ModuleTypes.
Implementations§
source§impl ModuleTypesBuilder
 
impl ModuleTypesBuilder
sourcepub fn reserve_wasm_signatures(&mut self, amt: usize)
 
pub fn reserve_wasm_signatures(&mut self, amt: usize)
Reserves space for amt more type signatures.
sourcepub fn wasm_func_type(&mut self, sig: WasmFuncType) -> SignatureIndex
 
pub fn wasm_func_type(&mut self, sig: WasmFuncType) -> SignatureIndex
Interns the sig specified and returns a unique SignatureIndex that
can be looked up within ModuleTypes to recover the WasmFuncType
at runtime.
sourcepub fn finish(self) -> ModuleTypes
 
pub fn finish(self) -> ModuleTypes
Returns the result ModuleTypes of this builder.
Trait Implementations§
source§impl Default for ModuleTypesBuilder
 
impl Default for ModuleTypesBuilder
source§fn default() -> ModuleTypesBuilder
 
fn default() -> ModuleTypesBuilder
Returns the “default value” for a type. Read more