Struct wasmparser::ValidatorResources[][src]

pub struct ValidatorResources(_);
Expand description

The implementation of WasmModuleResources used by Validator.

Trait Implementations

impl WasmModuleResources for ValidatorResources[src]

type FuncType = FuncType

The function type used for validation.

fn table_at(&self, at: u32) -> Option<TableType>[src]

Returns the table at given index if any.

fn memory_at(&self, at: u32) -> Option<MemoryType>[src]

Returns the linear memory at given index.

fn event_at(&self, at: u32) -> Option<&Self::FuncType>[src]

Returns the event at given index.

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]

Returns the FuncType associated with the given type index.

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]

Returns the element type at the given index.

fn element_count(&self) -> u32[src]

Returns the number of elements.

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]

Returns whether the function index is referenced in the module anywhere outside of the start/function sections. Read more

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.