pub struct WasmModuleBuilder { /* private fields */ }Implementations§
Source§impl WasmModuleBuilder
impl WasmModuleBuilder
pub fn new() -> Self
pub fn with_host_functions(self, registry: HostFunctionRegistry) -> Self
pub fn with_domain_model(self, model: DomainModel) -> Self
pub fn with_initial_memory(self, pages: u32) -> Self
pub fn with_max_memory(self, pages: Option<u32>) -> Self
pub fn add_predicate(self, predicate: PredicateDefinition) -> Self
pub fn build(self) -> SolverForgeResult<Vec<u8>>
pub fn build_base64(self) -> SolverForgeResult<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WasmModuleBuilder
impl RefUnwindSafe for WasmModuleBuilder
impl Send for WasmModuleBuilder
impl Sync for WasmModuleBuilder
impl Unpin for WasmModuleBuilder
impl UnwindSafe for WasmModuleBuilder
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