Skip to main content

CodeGraph

Trait CodeGraph 

Source
pub trait CodeGraph {
    // Required methods
    fn children(&self, n_id: NodeId) -> Vec<NodeId>;
    fn parents(&self, n_id: NodeId) -> Vec<NodeId>;
    fn ast_children(&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>;
}

Required Methods§

Source

fn children(&self, n_id: NodeId) -> Vec<NodeId>

Source

fn parents(&self, n_id: NodeId) -> Vec<NodeId>

Source

fn ast_children(&self, n_id: NodeId) -> Vec<NodeId>

Source

fn ast_parents(&self, n_id: NodeId) -> Vec<NodeId>

Source

fn cfg_children(&self, n_id: NodeId) -> Vec<NodeId>

Source

fn cfg_parents(&self, n_id: NodeId) -> Vec<NodeId>

Source

fn label_type(&self, n_id: NodeId) -> Option<&str>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§