[][src]Struct lucet_runtime_internals::module::MockModuleBuilder

pub struct MockModuleBuilder { /* fields omitted */ }

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]

pub fn with_import(
    self,
    idx: u32,
    import_module: &str,
    import_field: &str
) -> Self
[src]

pub fn with_exported_import(
    self,
    idx: u32,
    import_module: &str,
    import_field: &str,
    export_name: &str
) -> Self
[src]

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]

pub fn with_table_func(
    self,
    table_idx: u32,
    func_idx: u32,
    func: FunctionPointer
) -> Self
[src]

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]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self