pub struct CodeGraph { /* private fields */ }Implementations§
Source§impl CodeGraph
impl CodeGraph
pub fn init(root: impl AsRef<Path>) -> Result<Self>
pub fn open(root: impl AsRef<Path>) -> Result<Self>
pub fn root(&self) -> &Path
pub fn index_all(&mut self) -> Result<IndexResult>
pub fn sync(&mut self) -> Result<IndexResult>
pub fn stats(&self) -> Result<GraphStats>
pub fn search_nodes( &self, query: &str, options: SearchOptions, ) -> Result<Vec<SearchResult>>
pub fn get_node(&self, id: &str) -> Result<Option<Node>>
pub fn get_callers( &self, node_id: &str, max_depth: usize, ) -> Result<Vec<NodeEdge>>
pub fn get_callees( &self, node_id: &str, max_depth: usize, ) -> Result<Vec<NodeEdge>>
pub fn get_impact_radius( &self, node_id: &str, max_depth: usize, ) -> Result<Subgraph>
pub fn get_file_dependents(&self, file_path: &str) -> Result<Vec<String>>
pub fn get_all_files(&self) -> Result<Vec<FileRecord>>
pub fn build_context( &self, task: &str, max_nodes: i64, include_code: bool, ) -> Result<String>
pub fn read_node_source(&self, node: &Node) -> Result<String>
pub fn close(self)
Auto Trait Implementations§
impl !Freeze for CodeGraph
impl !RefUnwindSafe for CodeGraph
impl Send for CodeGraph
impl !Sync for CodeGraph
impl Unpin for CodeGraph
impl UnsafeUnpin for CodeGraph
impl !UnwindSafe for CodeGraph
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