pub struct ImportPositions { /* private fields */ }Expand description
The position of each of a module’s imports, suitable for indexing an instantiation’s argument list.
Implementations§
Source§impl ImportPositions
impl ImportPositions
Sourcepub fn get(&self, entity: EntityIndex) -> Option<usize>
pub fn get(&self, entity: EntityIndex) -> Option<usize>
Get the position of the import that defines the given entity.
Returns None when the module defines the entity itself, rather than
importing it.
Trait Implementations§
Source§impl Debug for ImportPositions
impl Debug for ImportPositions
Auto Trait Implementations§
impl Freeze for ImportPositions
impl RefUnwindSafe for ImportPositions
impl Send for ImportPositions
impl Sync for ImportPositions
impl Unpin for ImportPositions
impl UnsafeUnpin for ImportPositions
impl UnwindSafe for ImportPositions
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