Struct 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]fn memory_at(&self, at: u32) -> Option<MemoryType>
[src]
fn memory_at(&self, at: u32) -> Option<MemoryType>
[src]Returns the linear memory at given index.
fn global_at(&self, at: u32) -> Option<GlobalType>
[src]
fn global_at(&self, at: u32) -> Option<GlobalType>
[src]Returns the global variable at given index.
fn func_type_at(&self, at: u32) -> Option<&Self::FuncType>
[src]
fn func_type_at(&self, at: u32) -> Option<&Self::FuncType>
[src]Returns the FuncType
associated with the given type index.
fn type_of_function(&self, at: u32) -> Option<&Self::FuncType>
[src]
fn type_of_function(&self, at: u32) -> Option<&Self::FuncType>
[src]Returns the FuncType
associated with the given function index.
fn element_type_at(&self, at: u32) -> Option<Type>
[src]
fn element_type_at(&self, at: u32) -> Option<Type>
[src]Returns the element type at the given index.
fn element_count(&self) -> u32
[src]
fn element_count(&self) -> u32
[src]Returns the number of elements.
fn data_count(&self) -> u32
[src]
fn data_count(&self) -> u32
[src]Returns the number of bytes in the Wasm data section.
fn is_function_referenced(&self, idx: u32) -> bool
[src]
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