Struct wasmi_validation::context::ModuleContextBuilder
source · [−]pub struct ModuleContextBuilder { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Default for ModuleContextBuilder
impl Default for ModuleContextBuilder
sourcefn 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
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