Skip to main content

register_pool

Function register_pool 

Source
pub(crate) fn register_pool(
    caches: &mut BTreeMap<&'static str, ColCache>,
    desc: &Descriptor,
    build_cache: impl FnOnce() -> Cache,
) -> Option<Cache>
Expand description

Returns the cache for desc’s pool; build_cache is invoked only when a new pool must be created.