pub struct ResolvedSymbol {
pub id: String,
pub name: String,
pub kind: SymbolKind,
pub anchor: Anchor,
pub type_index: Option<u32>,
pub external: bool,
}Expand description
A name the compiler resolved to a definition.
Fields§
§id: StringStable identity of the definition within this build, as the compiler spells it — a path, a mangled name, a USR.
name: StringThe name a reader would use.
kind: SymbolKindWhat kind of thing it is.
anchor: AnchorWhere the use is, and where the definition was written.
type_index: Option<u32>Its type, as an index into CompilerIr::types.
external: boolWhether the definition is outside the code being scanned.
The difference matters to normalization: a call into a library names an interface two fragments genuinely share, while a call to a local function names something one of them happens to have called.
Trait Implementations§
Source§impl Clone for ResolvedSymbol
impl Clone for ResolvedSymbol
Source§fn clone(&self) -> ResolvedSymbol
fn clone(&self) -> ResolvedSymbol
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 moreSource§impl Debug for ResolvedSymbol
impl Debug for ResolvedSymbol
Source§impl<'de> Deserialize<'de> for ResolvedSymbol
impl<'de> Deserialize<'de> for ResolvedSymbol
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ResolvedSymbol
Source§impl PartialEq for ResolvedSymbol
impl PartialEq for ResolvedSymbol
Source§impl Serialize for ResolvedSymbol
impl Serialize for ResolvedSymbol
impl StructuralPartialEq for ResolvedSymbol
Auto Trait Implementations§
impl Freeze for ResolvedSymbol
impl RefUnwindSafe for ResolvedSymbol
impl Send for ResolvedSymbol
impl Sync for ResolvedSymbol
impl Unpin for ResolvedSymbol
impl UnsafeUnpin for ResolvedSymbol
impl UnwindSafe for ResolvedSymbol
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