Struct rustc_typeck::dep_graph::DepTrackingMap [] [src]

pub struct DepTrackingMap<M> where M: DepTrackingMapConfig {
    // some fields omitted
}
Unstable (rustc_private)

A DepTrackingMap offers a subset of the Map API and ensures that we make calls to read and write as appropriate. We key the maps with a unique type for brevity.

Methods

impl<M> DepTrackingMap<M> where M: DepTrackingMapConfig

fn new(graph: DepGraph) -> DepTrackingMap<M>

fn get(&self, k: &M::Key) -> Option<&M::Value>

fn insert(&mut self, k: M::Key, v: M::Value) -> Option<M::Value>

fn contains_key(&self, k: &M::Key) -> bool

Trait Implementations

impl<'k, M> Index<&'k M::Key> for DepTrackingMap<M> where M: DepTrackingMapConfig

type Output = M::Value

fn index(&self, k: &'k M::Key) -> &M::Value