[−][src]Struct lucet_runtime_internals::module::MockModuleBuilder
Methods
impl MockModuleBuilder
[src]
pub fn new() -> Self
[src]
pub fn with_heap_spec(self, heap_spec: HeapSpec) -> Self
[src]
pub fn with_initial_heap(self, heap: &[u8]) -> Self
[src]
pub fn with_global(self, idx: u32, init_val: i64) -> Self
[src]
pub fn with_exported_global(
self,
idx: u32,
init_val: i64,
export_name: &str
) -> Self
[src]
self,
idx: u32,
init_val: i64,
export_name: &str
) -> Self
pub fn with_import(
self,
idx: u32,
import_module: &str,
import_field: &str
) -> Self
[src]
self,
idx: u32,
import_module: &str,
import_field: &str
) -> Self
pub fn with_exported_import(
self,
idx: u32,
import_module: &str,
import_field: &str,
export_name: &str
) -> Self
[src]
self,
idx: u32,
import_module: &str,
import_field: &str,
export_name: &str
) -> Self
pub fn with_table_element(self, idx: u32, element: &TableElement) -> Self
[src]
pub fn with_export_func(self, export: MockExportBuilder) -> Self
[src]
pub fn with_exported_import_func(
self,
export_name: &'static str,
import_fn_ptr: FunctionPointer,
sig: Signature
) -> Self
[src]
self,
export_name: &'static str,
import_fn_ptr: FunctionPointer,
sig: Signature
) -> Self
pub fn with_table_func(
self,
table_idx: u32,
func_idx: u32,
func: FunctionPointer
) -> Self
[src]
self,
table_idx: u32,
func_idx: u32,
func: FunctionPointer
) -> Self
pub fn with_start_func(self, func: FunctionPointer) -> Self
[src]
pub fn build(self) -> Arc<dyn Module>
[src]
Trait Implementations
impl Default for MockModuleBuilder
[src]
fn default() -> MockModuleBuilder
[src]
Auto Trait Implementations
impl Send for MockModuleBuilder
impl Sync for MockModuleBuilder
impl Unpin for MockModuleBuilder
impl UnwindSafe for MockModuleBuilder
impl RefUnwindSafe for MockModuleBuilder
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self