pub struct Reference {
pub name: String,
pub from: Option<String>,
pub line: usize,
pub kind: RefKind,
}Expand description
A name-based reference (e.g. a call) from within from (the enclosing
function symbol, if any) to name. References are unresolved: they match
by name, not by a resolved definition. This is a heuristic call graph,
suitable for navigation; true name resolution is a later milestone.
Path-agnostic like Symbol; the path comes from assembly.
Fields§
§name: String§from: Option<String>§line: usize§kind: RefKindHow the callee was written at the call site. Defaults to
RefKind::Free and is omitted from the serialized slice when free, so
a file of plain calls keeps the byte-identical slice — and therefore the
same content hash — it had before this field existed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reference
impl<'de> Deserialize<'de> for Reference
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 Reference
impl StructuralPartialEq for Reference
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnsafeUnpin for Reference
impl UnwindSafe for Reference
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