[][src]Struct dashcache::DashCache

pub struct DashCache<C, S = RandomState> { /* fields omitted */ }

A global cache built around a DashMap

Implementations

impl<C: Hash + Eq> DashCache<C>[src]

pub fn new() -> DashCache<C>[src]

Create a new, empty DashCache

Trait Implementations

impl<C, S> Debug for DashCache<C, S> where
    C: Debug + Hash + Eq,
    S: BuildHasher + Clone
[src]

impl<C: Hash + Eq, S: BuildHasher + Clone + Default> Default for DashCache<C, S>[src]

impl<C, S> From<DashMap<C, (), S>> for DashCache<C, S>[src]

impl<C, S> GlobalCache for DashCache<C, S> where
    S: BuildHasher + Clone,
    C: Hash + Eq + Clone + CanCollect
[src]

type Entry = C

The cache entry type

Auto Trait Implementations

impl<C, S = RandomState> !RefUnwindSafe for DashCache<C, S>

impl<C, S> Send for DashCache<C, S> where
    C: Send,
    S: Send

impl<C, S> Sync for DashCache<C, S> where
    C: Send + Sync,
    S: Send + Sync

impl<C, S> Unpin for DashCache<C, S> where
    S: Unpin

impl<C, S> UnwindSafe for DashCache<C, S> where
    C: UnwindSafe,
    S: 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> Erasable for T[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.