pub struct GraphSnapshot {
pub version: u32,
pub symbols: Vec<SymbolEntry>,
pub edges: Vec<(u32, u32)>,
pub name_index: HashMap<String, Vec<u32>>,
pub qualified_index: HashMap<String, Vec<u32>>,
}Expand description
Memory-mapped, derived view of the graph. Snapshot is a derived artifact —
SQLite is always the source of truth. Building the snapshot lets the MCP
server skip SQLite round-trips on the hot path: every find_definition,
find_references, and impact query becomes pure-memory work.
Fields§
§version: u32§symbols: Vec<SymbolEntry>§edges: Vec<(u32, u32)>§name_index: HashMap<String, Vec<u32>>§qualified_index: HashMap<String, Vec<u32>>Trait Implementations§
Source§impl Clone for GraphSnapshot
impl Clone for GraphSnapshot
Source§fn clone(&self) -> GraphSnapshot
fn clone(&self) -> GraphSnapshot
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 GraphSnapshot
impl Debug for GraphSnapshot
Source§impl<'de> Deserialize<'de> for GraphSnapshot
impl<'de> Deserialize<'de> for GraphSnapshot
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
Auto Trait Implementations§
impl Freeze for GraphSnapshot
impl RefUnwindSafe for GraphSnapshot
impl Send for GraphSnapshot
impl Sync for GraphSnapshot
impl Unpin for GraphSnapshot
impl UnsafeUnpin for GraphSnapshot
impl UnwindSafe for GraphSnapshot
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