Skip to main content

GraphStore

Trait GraphStore 

Source
pub trait GraphStore {
    // Required methods
    fn callers(&self, fqn: &str) -> Vec<SymbolRef>;
    fn callees(&self, fqn: &str) -> Vec<SymbolRef>;
    fn file_dependencies(&self, path: &str) -> Vec<String>;
    fn impact(&self, fqn: &str, limits: QueryLimits) -> ImpactReport;
    fn symbols_in_file(&self, path: &str) -> FileSymbols;
    fn find_symbol(&self, query: &str) -> Vec<SymbolRef>;
    fn node_count(&self) -> usize;
    fn edge_count(&self) -> usize;
}

Required Methods§

Source

fn callers(&self, fqn: &str) -> Vec<SymbolRef>

Source

fn callees(&self, fqn: &str) -> Vec<SymbolRef>

Source

fn file_dependencies(&self, path: &str) -> Vec<String>

Source

fn impact(&self, fqn: &str, limits: QueryLimits) -> ImpactReport

Source

fn symbols_in_file(&self, path: &str) -> FileSymbols

Source

fn find_symbol(&self, query: &str) -> Vec<SymbolRef>

Source

fn node_count(&self) -> usize

Source

fn edge_count(&self) -> usize

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§