Struct wasmtime_environ::wasm::wasmparser::ValidatorResources [−][src]
pub struct ValidatorResources(_);
Expand description
The implementation of WasmModuleResources
used by Validator
.
Trait Implementations
impl WasmModuleResources for ValidatorResources
[src]
impl WasmModuleResources for ValidatorResources
[src]pub fn memory_at(&self, at: u32) -> Option<MemoryType>
[src]
pub fn memory_at(&self, at: u32) -> Option<MemoryType>
[src]Returns the linear memory at given index.
pub fn event_at(
&self,
at: u32
) -> Option<&<ValidatorResources as WasmModuleResources>::FuncType>
[src]
pub fn event_at(
&self,
at: u32
) -> Option<&<ValidatorResources as WasmModuleResources>::FuncType>
[src]Returns the event at given index.
pub fn global_at(&self, at: u32) -> Option<GlobalType>
[src]
pub fn global_at(&self, at: u32) -> Option<GlobalType>
[src]Returns the global variable at given index.
pub fn func_type_at(
&self,
at: u32
) -> Option<&<ValidatorResources as WasmModuleResources>::FuncType>
[src]
pub fn func_type_at(
&self,
at: u32
) -> Option<&<ValidatorResources as WasmModuleResources>::FuncType>
[src]Returns the FuncType
associated with the given type index.
pub fn type_of_function(
&self,
at: u32
) -> Option<&<ValidatorResources as WasmModuleResources>::FuncType>
[src]
pub fn type_of_function(
&self,
at: u32
) -> Option<&<ValidatorResources as WasmModuleResources>::FuncType>
[src]Returns the FuncType
associated with the given function index.
pub fn element_type_at(&self, at: u32) -> Option<Type>
[src]
pub fn element_type_at(&self, at: u32) -> Option<Type>
[src]Returns the element type at the given index.
pub fn element_count(&self) -> u32
[src]
pub fn element_count(&self) -> u32
[src]Returns the number of elements.
pub fn data_count(&self) -> u32
[src]
pub fn data_count(&self) -> u32
[src]Returns the number of bytes in the Wasm data section.
pub fn is_function_referenced(&self, idx: u32) -> bool
[src]
pub fn is_function_referenced(&self, idx: u32) -> bool
[src]Returns whether the function index is referenced in the module anywhere outside of the start/function sections. Read more