[][src]Struct wast::Names

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

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.

Methods

impl<'a> Names<'a>[src]

pub fn resolve_func(&self, idx: &mut Index<'a>) -> Result<(), Error>[src]

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.

pub fn resolve_memory(&self, idx: &mut Index<'a>) -> Result<(), Error>[src]

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.

pub fn resolve_table(&self, idx: &mut Index<'a>) -> Result<(), Error>[src]

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.

pub fn resolve_global(&self, idx: &mut Index<'a>) -> Result<(), Error>[src]

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

impl<'a> Default for Names<'a>[src]

Auto Trait Implementations

impl<'a> Send for Names<'a>

impl<'a> Sync for Names<'a>

impl<'a> Unpin for Names<'a>

impl<'a> UnwindSafe for Names<'a>

impl<'a> RefUnwindSafe for Names<'a>

Blanket Implementations

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

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

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.

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.

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

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

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