pub struct CodeGraph<'a> { /* private fields */ }Implementations§
Source§impl<'a> CodeGraph<'a>
impl<'a> CodeGraph<'a>
pub fn new(project_id: &'a str, client: &'a mut GraphClient) -> Self
pub fn sync_file( &mut self, file_path: &str, imports: &[ImportRelation], definitions: &[Symbol], calls: &[CallRelation], ) -> Result<usize>
pub fn ensure_file_node( &mut self, file_path: &str, symbol_count: usize, ) -> Result<()>
pub fn add_imports( &mut self, file_path: &str, imports: &[ImportRelation], ) -> Result<usize>
pub fn add_definitions( &mut self, file_path: &str, definitions: &[Symbol], ) -> Result<usize>
pub fn add_calls( &mut self, file_path: &str, calls: &[CallRelation], ) -> Result<usize>
pub fn delete_file_graph( &mut self, file_path: &str, current_symbol_ids: &[String], ) -> Result<()>
pub fn delete_file_node(&mut self, file_path: &str) -> Result<()>
pub fn delete_file_projection(&mut self, file_path: &str) -> Result<()>
pub fn cleanup_orphans(&mut self) -> Result<()>
pub fn clear_project(&mut self) -> Result<()>
Auto Trait Implementations§
impl<'a> Freeze for CodeGraph<'a>
impl<'a> !RefUnwindSafe for CodeGraph<'a>
impl<'a> Send for CodeGraph<'a>
impl<'a> Sync for CodeGraph<'a>
impl<'a> Unpin for CodeGraph<'a>
impl<'a> UnsafeUnpin for CodeGraph<'a>
impl<'a> !UnwindSafe for CodeGraph<'a>
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