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
Auto Trait Implementations§
impl RefUnwindSafe for ModuleContextBuilder
impl Send for ModuleContextBuilder
impl Sync for ModuleContextBuilder
impl Unpin for ModuleContextBuilder
impl UnwindSafe for ModuleContextBuilder
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