[−][src]Struct ccl::hltimedcache::HLTimedCache
Fields
inner: Arc<HLTimedCacheInner<K, V>>
Methods
impl<K, V> HLTimedCache<K, V> where
K: Hash + Eq + Clone,
[src]
K: Hash + Eq + Clone,
pub fn new(
load_item: fn(_: &K) -> Option<V>,
save_item: fn(_: &K, _: &V) -> bool
) -> Self
[src]
load_item: fn(_: &K) -> Option<V>,
save_item: fn(_: &K, _: &V) -> bool
) -> Self
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,
K: Send + Sync,
V: Send + Sync,
impl<K, V> Sync for HLTimedCache<K, V> where
K: Send + Sync,
V: Send + Sync,
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]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,