Skip to main content

CallGraphRead

Trait CallGraphRead 

Source
pub trait CallGraphRead {
Show 19 methods // Required methods fn project_root(&self) -> &Path; fn project_key(&self) -> &str; fn sqlite_path(&self) -> &Path; fn is_current(&self) -> bool; fn edge_snapshot(&self) -> Result<BTreeSet<StoredEdge>>; fn indexed_file_count(&self) -> Result<usize>; fn node_for(&self, file_rel: &Path, symbol: &str) -> Result<StoreNode>; fn nodes_for(&self, file_rel: &Path, symbol: &str) -> Result<Vec<StoreNode>>; fn nodes_matching(&self, symbol: &str) -> Result<Vec<StoreNode>>; fn direct_callers_of( &self, file_rel: &Path, symbol: &str, ) -> Result<Vec<StoreCallSite>>; fn callers_of( &self, file_rel: &Path, symbol: &str, depth: usize, ) -> Result<StoreCallersResult>; fn impact_of( &self, file_rel: &Path, symbol: &str, depth: usize, ) -> Result<StoreImpactResult>; fn outgoing_calls_of(&self, node: &StoreNode) -> Result<Vec<StoreCallSite>>; fn resolved_self_calls_of( &self, node: &StoreNode, ) -> Result<Vec<StoreCallSite>>; fn unresolved_calls_of( &self, node: &StoreNode, ) -> Result<Vec<StoreUnresolvedCall>>; fn call_tree( &self, file_rel: &Path, symbol: &str, depth: usize, ) -> Result<CallTreeNode>; fn trace_to( &self, file_rel: &Path, symbol: &str, max_depth: usize, ) -> Result<TraceToResult>; fn trace_to_symbol_candidates( &self, to_symbol: &str, ) -> Result<Vec<TraceToSymbolCandidate>>; fn trace_to_symbol( &self, file_rel: &Path, symbol: &str, to_symbol: &str, to_file: Option<&Path>, max_depth: usize, ) -> Result<TraceToSymbolResult>;
}

Required Methods§

Source

fn project_root(&self) -> &Path

Source

fn project_key(&self) -> &str

Source

fn sqlite_path(&self) -> &Path

Source

fn is_current(&self) -> bool

Source

fn edge_snapshot(&self) -> Result<BTreeSet<StoredEdge>>

Source

fn indexed_file_count(&self) -> Result<usize>

Source

fn node_for(&self, file_rel: &Path, symbol: &str) -> Result<StoreNode>

Source

fn nodes_for(&self, file_rel: &Path, symbol: &str) -> Result<Vec<StoreNode>>

Source

fn nodes_matching(&self, symbol: &str) -> Result<Vec<StoreNode>>

Source

fn direct_callers_of( &self, file_rel: &Path, symbol: &str, ) -> Result<Vec<StoreCallSite>>

Source

fn callers_of( &self, file_rel: &Path, symbol: &str, depth: usize, ) -> Result<StoreCallersResult>

Source

fn impact_of( &self, file_rel: &Path, symbol: &str, depth: usize, ) -> Result<StoreImpactResult>

Source

fn outgoing_calls_of(&self, node: &StoreNode) -> Result<Vec<StoreCallSite>>

Source

fn resolved_self_calls_of(&self, node: &StoreNode) -> Result<Vec<StoreCallSite>>

Source

fn unresolved_calls_of( &self, node: &StoreNode, ) -> Result<Vec<StoreUnresolvedCall>>

Source

fn call_tree( &self, file_rel: &Path, symbol: &str, depth: usize, ) -> Result<CallTreeNode>

Source

fn trace_to( &self, file_rel: &Path, symbol: &str, max_depth: usize, ) -> Result<TraceToResult>

Source

fn trace_to_symbol_candidates( &self, to_symbol: &str, ) -> Result<Vec<TraceToSymbolCandidate>>

Source

fn trace_to_symbol( &self, file_rel: &Path, symbol: &str, to_symbol: &str, to_file: Option<&Path>, max_depth: usize, ) -> Result<TraceToSymbolResult>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T: CallGraphRead + ?Sized> CallGraphRead for Arc<T>

Source§

fn project_root(&self) -> &Path

Source§

fn project_key(&self) -> &str

Source§

fn sqlite_path(&self) -> &Path

Source§

fn is_current(&self) -> bool

Source§

fn edge_snapshot(&self) -> Result<BTreeSet<StoredEdge>>

Source§

fn indexed_file_count(&self) -> Result<usize>

Source§

fn node_for(&self, file_rel: &Path, symbol: &str) -> Result<StoreNode>

Source§

fn nodes_for(&self, file_rel: &Path, symbol: &str) -> Result<Vec<StoreNode>>

Source§

fn nodes_matching(&self, symbol: &str) -> Result<Vec<StoreNode>>

Source§

fn direct_callers_of( &self, file_rel: &Path, symbol: &str, ) -> Result<Vec<StoreCallSite>>

Source§

fn callers_of( &self, file_rel: &Path, symbol: &str, depth: usize, ) -> Result<StoreCallersResult>

Source§

fn impact_of( &self, file_rel: &Path, symbol: &str, depth: usize, ) -> Result<StoreImpactResult>

Source§

fn outgoing_calls_of(&self, node: &StoreNode) -> Result<Vec<StoreCallSite>>

Source§

fn resolved_self_calls_of(&self, node: &StoreNode) -> Result<Vec<StoreCallSite>>

Source§

fn unresolved_calls_of( &self, node: &StoreNode, ) -> Result<Vec<StoreUnresolvedCall>>

Source§

fn call_tree( &self, file_rel: &Path, symbol: &str, depth: usize, ) -> Result<CallTreeNode>

Source§

fn trace_to( &self, file_rel: &Path, symbol: &str, max_depth: usize, ) -> Result<TraceToResult>

Source§

fn trace_to_symbol_candidates( &self, to_symbol: &str, ) -> Result<Vec<TraceToSymbolCandidate>>

Source§

fn trace_to_symbol( &self, file_rel: &Path, symbol: &str, to_symbol: &str, to_file: Option<&Path>, max_depth: usize, ) -> Result<TraceToSymbolResult>

Implementors§