pub fn new<F>(f: F) -> Self
    where
        F: Fn(&K, &V) -> S + Send + Sync + 'static,
    {
        Self {
            estimator: Box::new(f),
        }
    }
/// Create new resource estimator from given function.
Create new resource estimator from given function.
Create new resource estimator from given function .
pub fn new<F>(f: F) -> Self
    where
        F: Fn(&K, &V) -> S + Send + Sync + 'static,
    {
        Self {
            estimator: Box::new(f),
        }
    }
pub fn new < F > ( f : F ) -> Self where F : Fn ( & K , & V ) -> S + Send + Sync + ' static , { Self { estimator : Box :: new ( f ) , } }
Create new resource estimator from given function.
Create new resource estimator from given function .
f
F
f
F