Struct wasmi_validation::context::ModuleContextBuilder
source · pub struct ModuleContextBuilder { /* private fields */ }
Implementations§
source§impl ModuleContextBuilder
impl ModuleContextBuilder
pub fn new() -> ModuleContextBuilder
pub fn push_memory(&mut self, memory: MemoryType)
pub fn push_table(&mut self, table: TableType)
pub fn push_global(&mut self, global: GlobalType)
pub fn set_types(&mut self, types: Vec<FunctionType>)
pub fn push_func_type_index(&mut self, func_type_index: u32)
pub fn build(self) -> ModuleContext
Trait Implementations§
source§impl Default for ModuleContextBuilder
impl Default for ModuleContextBuilder
source§fn default() -> ModuleContextBuilder
fn default() -> ModuleContextBuilder
Returns the “default value” for a type. Read more