pub struct AddressPath {
pub path: NameId,
pub target: DefinitionId,
}Expand description
Maps a qualified author path (e.g. knot, knot.stitch, knot.label,
knot.stitch.label) to the DefinitionId it addresses.
This is the source of truth for path → address lookup
(Program::find_address):
the linker resolves each target through its address map. The compiler
emits one entry per scope container (knot/stitch) and per author-labeled
gather/choice. path indexes the name table; target is the addressed
container/label id.
Fields§
§path: NameId§target: DefinitionIdTrait Implementations§
Source§impl Clone for AddressPath
impl Clone for AddressPath
Source§fn clone(&self) -> AddressPath
fn clone(&self) -> AddressPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AddressPath
Source§impl Debug for AddressPath
impl Debug for AddressPath
impl Eq for AddressPath
Source§impl PartialEq for AddressPath
impl PartialEq for AddressPath
Source§fn eq(&self, other: &AddressPath) -> bool
fn eq(&self, other: &AddressPath) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AddressPath
Auto Trait Implementations§
impl Freeze for AddressPath
impl RefUnwindSafe for AddressPath
impl Send for AddressPath
impl Sync for AddressPath
impl Unpin for AddressPath
impl UnsafeUnpin for AddressPath
impl UnwindSafe for AddressPath
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