pub struct GraphReference { /* private fields */ }Expand description
One naming site, its copied evidence, and the edges its candidates produced.
A site with no candidate keeps its record and its gaps, so unresolved evidence never disappears from the graph.
Implementations§
Source§impl GraphReference
impl GraphReference
Sourcepub fn id(&self) -> GraphReferenceId
pub fn id(&self) -> GraphReferenceId
This record’s dense identity, equal to its position in the graph.
Sourcepub fn source(&self) -> GraphNodeId
pub fn source(&self) -> GraphNodeId
The node every edge this record produced starts at.
Sourcepub fn kind(&self) -> GraphReferenceKind
pub fn kind(&self) -> GraphReferenceKind
What this site denotes at the graph layer.
Sourcepub fn span(&self) -> &SourceSpan
pub fn span(&self) -> &SourceSpan
Where the site sits.
Sourcepub fn gaps(&self) -> &[ResolutionGap]
pub fn gaps(&self) -> &[ResolutionGap]
Why the answer is incomplete, in report order.
Sourcepub fn edges(&self) -> &[GraphEdgeId] ⓘ
pub fn edges(&self) -> &[GraphEdgeId] ⓘ
The edges this record’s candidates produced, in candidate order.
Trait Implementations§
Source§impl Clone for GraphReference
impl Clone for GraphReference
Source§impl Debug for GraphReference
impl Debug for GraphReference
impl Eq for GraphReference
Source§impl PartialEq for GraphReference
impl PartialEq for GraphReference
Source§impl Serialize for GraphReference
impl Serialize for GraphReference
impl StructuralPartialEq for GraphReference
Auto Trait Implementations§
impl Freeze for GraphReference
impl RefUnwindSafe for GraphReference
impl Send for GraphReference
impl Sync for GraphReference
impl Unpin for GraphReference
impl UnsafeUnpin for GraphReference
impl UnwindSafe for GraphReference
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