[−][src]Struct rustc_query_system::query::caches::ArenaCache

pub struct ArenaCache<'tcx, K, V> {
    arena: WorkerLocal<TypedArena<(V, DepNodeIndex)>>,
    phantom: PhantomData<(K, &'tcx V)>,
}

Fields

arena: WorkerLocal<TypedArena<(V, DepNodeIndex)>>phantom: PhantomData<(K, &'tcx V)>

Trait Implementations

impl<'tcx, K, V> Default for ArenaCache<'tcx, K, V>[src]

impl<'tcx, K, V: 'tcx> QueryCache for ArenaCache<'tcx, K, V> where
    K: Eq + Hash + Clone + Debug, 
[src]

type Key = K

type Sharded = FxHashMap<K, &'tcx (V, DepNodeIndex)>

impl<'tcx, K: Eq + Hash, V: 'tcx> QueryStorage for ArenaCache<'tcx, K, V>[src]

type Value = V

type Stored = &'tcx V

Auto Trait Implementations

impl<'tcx, K, V> !RefUnwindSafe for ArenaCache<'tcx, K, V>

impl<'tcx, K, V> Send for ArenaCache<'tcx, K, V> where
    K: Send,
    V: Send + Sync, 

impl<'tcx, K, V> !Sync for ArenaCache<'tcx, K, V>

impl<'tcx, K, V> Unpin for ArenaCache<'tcx, K, V> where
    K: Unpin,
    V: Unpin, 

impl<'tcx, K, V> UnwindSafe for ArenaCache<'tcx, K, V> where
    K: UnwindSafe,
    V: RefUnwindSafe + UnwindSafe, 

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<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.