Struct wast::Names[][src]

pub struct Names<'a> { /* fields omitted */ }
Expand description

Representation of the results of name resolution for a module.

This structure is returned from the Module::resolve function and can be used to resolve your own name arguments if you have any.

Implementations

Resolves idx within the function namespace.

If idx is a Num, it is ignored, but if it’s an Id then it will be looked up in the function namespace and converted to a Num. If the Id is not defined then an error will be returned.

Resolves idx within the memory namespace.

If idx is a Num, it is ignored, but if it’s an Id then it will be looked up in the memory namespace and converted to a Num. If the Id is not defined then an error will be returned.

Resolves idx within the table namespace.

If idx is a Num, it is ignored, but if it’s an Id then it will be looked up in the table namespace and converted to a Num. If the Id is not defined then an error will be returned.

Resolves idx within the global namespace.

If idx is a Num, it is ignored, but if it’s an Id then it will be looked up in the global namespace and converted to a Num. If the Id is not defined then an error will be returned.

Trait Implementations

Returns the “default value” for a type. 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

Performs the conversion.

Performs the conversion.

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.