Struct rustc::middle::cfg::CFGUnstable [-] [+] [src]

pub struct CFG {
    pub graph: CFGGraph,
    pub entry: CFGIndex,
    pub exit: CFGIndex,
}

Fields

graph
entry
exit

Methods

impl CFG

fn new(tcx: &ctxt, blk: &Block) -> CFG

fn node_is_reachable(&self, id: NodeId) -> bool

Trait Implementations

impl<'a> GraphWalk<'a, Node<'a>, Edge<'a>> for &'a CFG

fn nodes(&'a self) -> Nodes<'a, Node<'a>>

fn edges(&'a self) -> Edges<'a, Edge<'a>>

fn source(&'a self, edge: &Edge<'a>) -> Node<'a>

fn target(&'a self, edge: &Edge<'a>) -> Node<'a>