pub struct GraphynGraph {
pub graph: DiGraph<SymbolId, RelationshipMeta>,
pub node_index: DashMap<SymbolId, NodeIndex>,
pub name_index: DashMap<String, Vec<SymbolId>>,
pub file_index: DashMap<String, Vec<SymbolId>>,
pub symbols: DashMap<SymbolId, Symbol>,
pub alias_chains: DashMap<SymbolId, Vec<AliasEntry>>,
}Fields§
§graph: DiGraph<SymbolId, RelationshipMeta>§node_index: DashMap<SymbolId, NodeIndex>§name_index: DashMap<String, Vec<SymbolId>>§file_index: DashMap<String, Vec<SymbolId>>§symbols: DashMap<SymbolId, Symbol>§alias_chains: DashMap<SymbolId, Vec<AliasEntry>>Implementations§
Source§impl GraphynGraph
impl GraphynGraph
pub fn new() -> Self
pub fn add_symbol(&mut self, symbol: Symbol)
pub fn replace_symbol(&mut self, symbol: Symbol)
pub fn add_relationship(&mut self, relationship: &Relationship)
pub fn remove_relationships_in_file(&mut self, file: &str) -> usize
pub fn remove_file(&mut self, file: &str) -> Vec<SymbolId> ⓘ
Trait Implementations§
Source§impl Debug for GraphynGraph
impl Debug for GraphynGraph
Auto Trait Implementations§
impl Freeze for GraphynGraph
impl !RefUnwindSafe for GraphynGraph
impl Send for GraphynGraph
impl Sync for GraphynGraph
impl Unpin for GraphynGraph
impl UnsafeUnpin for GraphynGraph
impl UnwindSafe for GraphynGraph
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