pub struct TypesRef<'a> { /* private fields */ }
Expand description

Represents the types known to a crate::Validator during validation.

Retrieved via the crate::Validator::types method.

Implementations

Gets a type based on its type id.

Returns None if the type id is unknown.

Gets a type id from a type index.

Returns None if the type index is out of bounds or the type has not been parsed yet.

Gets a type at the given type index.

Returns None if the type index is out of bounds or the type has not been parsed yet.

Gets a defined core function type at the given type index.

Returns None if the type index is out of bounds or the type has not been parsed yet.

Gets the type of a table at the given table index.

Returns None if the type index is out of bounds or the type has not been parsed yet.

Gets the type of a memory at the given memory index.

Returns None if the type index is out of bounds or the type has not been parsed yet.

Gets the type of a global at the given global index.

Returns None if the type index is out of bounds or the type has not been parsed yet.

Gets the type of a tag at the given tag index.

Returns None if the type index is out of bounds or the type has not been parsed yet.

Gets the type of a core function at the given function index.

Returns None if the type index is out of bounds or the type has not been parsed yet.

Gets the type of an element segment at the given element segment index.

Returns None if the type index is out of bounds or the type has not been parsed yet.

Gets the type of a component function at the given function index.

Returns None if the type index is out of bounds or the type has not been parsed yet.

Gets the type of a module at the given module index.

Returns None if the type index is out of bounds or the type has not been parsed yet.

Gets the type of a module instance at the given module instance index.

Returns None if the type index is out of bounds or the type has not been parsed yet.

Gets the type of a component at the given component index.

Returns None if the type index is out of bounds or the type has not been parsed yet.

Gets the type of an component instance at the given component instance index.

Returns None if the type index is out of bounds or the type has not been parsed yet.

Gets the type of a value at the given value index.

Returns None if the type index is out of bounds or the type has not been parsed yet.

Gets the entity type for the given import.

Gets the entity type from the given export.

Gets the component entity type for the given component import.

Gets the component entity type from the given component export.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.