pub struct AstGraph {
pub nodes: BTreeMap<NodeId, AstNode>,
pub edges: BTreeMap<NodeId, BTreeMap<NodeId, AstEdge>>,
}Fields§
§nodes: BTreeMap<NodeId, AstNode>§edges: BTreeMap<NodeId, BTreeMap<NodeId, AstEdge>>Implementations§
Trait Implementations§
Source§impl CodeGraph for AstGraph
impl CodeGraph for AstGraph
fn children(&self, n_id: NodeId) -> Vec<NodeId>
fn ast_children(&self, n_id: NodeId) -> Vec<NodeId>
fn parents(&self, n_id: NodeId) -> Vec<NodeId>
fn ast_parents(&self, n_id: NodeId) -> Vec<NodeId>
fn cfg_children(&self, _n_id: NodeId) -> Vec<NodeId>
fn cfg_parents(&self, _n_id: NodeId) -> Vec<NodeId>
fn label_type(&self, n_id: NodeId) -> Option<&str>
impl Eq for AstGraph
impl StructuralPartialEq for AstGraph
Auto Trait Implementations§
impl Freeze for AstGraph
impl RefUnwindSafe for AstGraph
impl Send for AstGraph
impl Sync for AstGraph
impl Unpin for AstGraph
impl UnsafeUnpin for AstGraph
impl UnwindSafe for AstGraph
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