[−][src]Struct wasmtime_environ::Module
A translated WebAssembly module, excluding the function bodies and memory initializers.
Fields
id: usize
A unique identifier (within this process) for this module.
name: Option<String>
The name of this wasm module, often found in the wasm file.
local: ModuleLocal
Local information about a module which is the bare minimum necessary to
translate a function body. This is derived as Hash
whereas this module
isn't, since it contains too much information needed to translate a
function.
imports: Vec<(String, String, EntityIndex)>
All import records, in the order they are declared in the module.
exports: IndexMap<String, EntityIndex>
Exported entities.
start_func: Option<FuncIndex>
The module "start" function, if present.
table_elements: Vec<TableElements>
WebAssembly table initializers.
passive_elements: HashMap<ElemIndex, Box<[FuncIndex]>>
WebAssembly passive elements.
passive_data: HashMap<DataIndex, Arc<[u8]>>
WebAssembly passive data segments.
func_names: HashMap<FuncIndex, String>
WebAssembly table initializers.
Methods
impl Module
[src]
pub fn new() -> Self
[src]
Allocates the module data structures.
pub fn get_passive_element(&self, index: ElemIndex) -> Option<&[FuncIndex]>
[src]
Get the given passive element, if it exists.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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>,