Skip to main content

cache_get_or_set

Function cache_get_or_set 

Source
pub unsafe fn cache_get_or_set<K, V, F>(
    cache: *mut LazyRUMCache<K, V>,
    key: &K,
    default_func: F,
) -> RUMResult<V>
where K: Hash + Eq + Clone + Send + Sync + 'static, V: Clone + Send + Sync + 'static, F: Fn() -> RUMResult<V>,