[][src]Struct ccl::hltimedcache::HLTimedCache

pub struct HLTimedCache<K, V> where
    K: Hash + Eq + Clone
{ pub inner: Arc<HLTimedCacheInner<K, V>>, }

Fields

inner: Arc<HLTimedCacheInner<K, V>>

Methods

impl<K, V> HLTimedCache<K, V> where
    K: Hash + Eq + Clone
[src]

pub fn new(
    load_item: fn(_: &K) -> Option<V>,
    save_item: fn(_: &K, _: &V) -> bool
) -> Self
[src]

pub fn map<T, F: FnOnce(&V) -> T>(&self, key: &K, f: F) -> T[src]

pub fn map_mut<T, F: FnOnce(&mut V) -> T>(&self, key: &K, f: F) -> T[src]

pub fn do_check(&self)[src]

Auto Trait Implementations

impl<K, V> Send for HLTimedCache<K, V> where
    K: Send + Sync,
    V: Send + Sync

impl<K, V> Sync for HLTimedCache<K, V> where
    K: Send + Sync,
    V: Send + Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T