pub struct SymbolContext {
pub node: NodeSummary,
pub container: Option<String>,
pub calls: Vec<String>,
pub called_by: Vec<String>,
pub authored_by: Vec<String>,
}Expand description
A code symbol related to the topic, with the slice of its graph neighbourhood that grounds authoring: what defines it, what it calls / is called by, and the authored ADRs/sections that govern it.
Fields§
§node: NodeSummaryThe symbol node.
container: Option<String>Key of the node that contains/defines it (its file or parent), if any.
calls: Vec<String>Keys this symbol calls.
called_by: Vec<String>Keys that call this symbol.
Keys of ADR/section nodes with an authored edge to this symbol.
Trait Implementations§
Source§impl Clone for SymbolContext
impl Clone for SymbolContext
Source§fn clone(&self) -> SymbolContext
fn clone(&self) -> SymbolContext
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 SymbolContext
impl Debug for SymbolContext
Source§impl PartialEq for SymbolContext
impl PartialEq for SymbolContext
Source§impl Serialize for SymbolContext
impl Serialize for SymbolContext
impl StructuralPartialEq for SymbolContext
Auto Trait Implementations§
impl Freeze for SymbolContext
impl RefUnwindSafe for SymbolContext
impl Send for SymbolContext
impl Sync for SymbolContext
impl Unpin for SymbolContext
impl UnsafeUnpin for SymbolContext
impl UnwindSafe for SymbolContext
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