pub struct Names<'a> { /* private fields */ }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§
Source§impl<'a> Names<'a>
impl<'a> Names<'a>
Sourcepub fn resolve_func(&self, idx: &mut Index<'a>) -> Result<(), Error>
pub fn resolve_func(&self, idx: &mut Index<'a>) -> Result<(), Error>
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.
Sourcepub fn resolve_memory(&self, idx: &mut Index<'a>) -> Result<(), Error>
pub fn resolve_memory(&self, idx: &mut Index<'a>) -> Result<(), Error>
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.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Names<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more