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
sourceimpl<'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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more