pub struct ApiDepGraph<'tcx> {
graph: Graph<DepNode<'tcx>, DepEdge>,
node_indices: HashMap<DepNode<'tcx>, NodeIndex>,
}
Fields§
§graph: Graph<DepNode<'tcx>, DepEdge>
§node_indices: HashMap<DepNode<'tcx>, NodeIndex>
Implementations§
source§impl<'tcx> ApiDepGraph<'tcx>
impl<'tcx> ApiDepGraph<'tcx>
pub fn new() -> ApiDepGraph<'tcx>
pub fn inner_graph(&self) -> &Graph<DepNode<'tcx>, DepEdge>
pub fn statistics(&self) -> Statistics
pub fn get_node(&mut self, node: DepNode<'tcx>) -> NodeIndex
pub fn add_edge(&mut self, src: NodeIndex, dst: NodeIndex, edge: DepEdge)
pub fn add_edge_once(&mut self, src: NodeIndex, dst: NodeIndex, edge: DepEdge)
pub fn dump_to_dot<P: AsRef<Path>>(&self, path: P, tcx: TyCtxt<'tcx>)
Auto Trait Implementations§
impl<'tcx> Freeze for ApiDepGraph<'tcx>
impl<'tcx> !RefUnwindSafe for ApiDepGraph<'tcx>
impl<'tcx> Send for ApiDepGraph<'tcx>
impl<'tcx> Sync for ApiDepGraph<'tcx>
impl<'tcx> Unpin for ApiDepGraph<'tcx>
impl<'tcx> !UnwindSafe for ApiDepGraph<'tcx>
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