pub struct ApiDependencyGraph<'tcx> {
graph: Graph<Node<'tcx>, Edge>,
node_indices: HashMap<Node<'tcx>, NodeIndex>,
}
Fields§
§graph: Graph<Node<'tcx>, Edge>
§node_indices: HashMap<Node<'tcx>, NodeIndex>
Implementations§
Source§impl<'tcx> ApiDependencyGraph<'tcx>
impl<'tcx> ApiDependencyGraph<'tcx>
pub fn new() -> ApiDependencyGraph<'tcx>
pub fn inner_graph(&self) -> &Graph<Node<'tcx>, Edge>
pub fn statistics(&self) -> Statistics
pub fn get_node(&mut self, node: Node<'tcx>) -> NodeIndex
pub fn add_edge(&mut self, src: NodeIndex, dst: NodeIndex, edge: Edge)
pub fn add_edge_once(&mut self, src: NodeIndex, dst: NodeIndex, edge: Edge)
pub fn dump_to_dot<P: AsRef<Path>>(&self, path: P, tcx: TyCtxt<'tcx>)
Trait Implementations§
Source§impl<'tcx> Clone for ApiDependencyGraph<'tcx>
impl<'tcx> Clone for ApiDependencyGraph<'tcx>
Source§fn clone(&self) -> ApiDependencyGraph<'tcx>
fn clone(&self) -> ApiDependencyGraph<'tcx>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'tcx> Freeze for ApiDependencyGraph<'tcx>
impl<'tcx> !RefUnwindSafe for ApiDependencyGraph<'tcx>
impl<'tcx> Send for ApiDependencyGraph<'tcx>
impl<'tcx> Sync for ApiDependencyGraph<'tcx>
impl<'tcx> Unpin for ApiDependencyGraph<'tcx>
impl<'tcx> !UnwindSafe for ApiDependencyGraph<'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