Type Alias EvaluationCache

Source
pub type EvaluationCache<'tcx, ENV> = Cache<(ENV, PolyTraitPredicate<'tcx>), EvaluationResult>;

Aliased Type§

struct EvaluationCache<'tcx, ENV> { /* private fields */ }

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 40 bytes

Implementations

Source§

impl<Key, Value> Cache<Key, Value>

Source

pub fn clear(&self)

Actually frees the underlying memory in contrast to what stdlib containers do on clear

Source§

impl<Key, Value> Cache<Key, Value>
where Key: Eq + Hash, Value: Clone,

Source

pub fn get<Tcx>(&self, key: &Key, tcx: Tcx) -> Option<Value>
where Tcx: DepContext,

Source

pub fn insert(&self, key: Key, dep_node: DepNodeIndex, value: Value)

Trait Implementations

Source§

impl<Key, Value> Clone for Cache<Key, Value>
where Key: Clone, Value: Clone,

Source§

fn clone(&self) -> Cache<Key, Value>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Key, Value> Default for Cache<Key, Value>

Source§

fn default() -> Cache<Key, Value>

Returns the “default value” for a type. Read more