[−][src]Struct rustc_infer::traits::specialization_graph::Graph

pub struct Graph {
    pub parent: HashMap<DefId, DefId, BuildHasherDefault<FxHasher>>,
    pub children: HashMap<DefId, Children, BuildHasherDefault<FxHasher>>,
    pub has_errored: bool,
}

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:

Fields

parent: HashMap<DefId, DefId, BuildHasherDefault<FxHasher>>

All impls have a parent; the "root" impls have as their parent the def_id of the trait.

children: HashMap<DefId, Children, BuildHasherDefault<FxHasher>>

The "root" impls are found by looking up the trait's def_id.

has_errored: bool

Whether an error was emitted while constructing the graph.

Auto Trait Implementations

impl RefUnwindSafe for Graph[src]

impl Send for Graph[src]

impl Sync for Graph[src]

impl Unpin for Graph[src]

impl UnwindSafe for Graph[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]