Struct wasmtime_environ::ModuleTypesBuilder
source · [−]pub struct ModuleTypesBuilder { /* private fields */ }
Expand description
A builder for ModuleTypes
.
Implementations
sourceimpl 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
sourceimpl Default for ModuleTypesBuilder
impl Default for ModuleTypesBuilder
sourcefn default() -> ModuleTypesBuilder
fn default() -> ModuleTypesBuilder
Returns the “default value” for a type. Read more
sourceimpl<T> Index<T> for ModuleTypesBuilder where
ModuleTypes: Index<T>,
impl<T> Index<T> for ModuleTypesBuilder where
ModuleTypes: Index<T>,
Auto Trait Implementations
impl RefUnwindSafe for ModuleTypesBuilder
impl Send for ModuleTypesBuilder
impl Sync for ModuleTypesBuilder
impl Unpin for ModuleTypesBuilder
impl UnwindSafe for ModuleTypesBuilder
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