Struct rustc_query_system::cache::Cache [−][src]
pub struct Cache<Key, Value> {
hashmap: Lock<FxHashMap<Key, WithDepNode<Value>>>,
}Fields
hashmap: Lock<FxHashMap<Key, WithDepNode<Value>>>Implementations
impl<Key, Value> Cache<Key, Value>[src]
impl<Key, Value> Cache<Key, Value>[src]impl<Key: Eq + Hash, Value: Clone> Cache<Key, Value>[src]
impl<Key: Eq + Hash, Value: Clone> Cache<Key, Value>[src]pub fn get<CTX: DepContext>(&self, key: &Key, tcx: CTX) -> Option<Value>[src]
pub fn insert(&self, key: Key, dep_node: DepNodeIndex, value: Value)[src]
Trait Implementations
Auto Trait Implementations
impl<Key, Value> !RefUnwindSafe for Cache<Key, Value>
impl<Key, Value> Send for Cache<Key, Value> where
Key: Send,
Value: Send,
Key: Send,
Value: Send,
impl<Key, Value> !Sync for Cache<Key, Value>
impl<Key, Value> Unpin for Cache<Key, Value> where
Key: Unpin,
Value: Unpin,
Key: Unpin,
Value: Unpin,
impl<Key, Value> UnwindSafe for Cache<Key, Value> where
Key: UnwindSafe,
Value: UnwindSafe,
Key: UnwindSafe,
Value: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more