Struct rustc::traits::specialization_graph::Graph [] [src]

pub struct Graph { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (rustc_private)

A per-trait graph of impls in specialization order. At the moment, this graph forms a tree rooted with the trait itself, with all other nodes representing impls, and parent-child relationships representing specializations.

The graph provides two key services:

Methods

impl<'a, 'gcx, 'tcx> Graph
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

🔬 This is a nightly-only experimental API. (rustc_private)

Insert a local impl into the specialization graph. If an existing impl conflicts with it (has overlap, but neither specializes the other), information about the area of overlap is returned in the Err.

🔬 This is a nightly-only experimental API. (rustc_private)

Insert cached metadata mapping from a child impl back to its parent.

🔬 This is a nightly-only experimental API. (rustc_private)

The parent of a given impl, which is the def id of the trait when the impl is a "specialization root".