[−][src]Struct wast::Names
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
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
Auto Trait Implementations
impl<'a> RefUnwindSafe for Names<'a>
impl<'a> Send for Names<'a>
impl<'a> Sync for Names<'a>
impl<'a> Unpin for Names<'a>
impl<'a> UnwindSafe for Names<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,