pub fn total_size_of_with_estimator<T, E>(value: &T, estimator: &E) -> usize
    where
        T: Any,
        E: DataSizeEstimator<T>,
    {
        Self::stack_size_of(value) + Self::heap_size_of_with_estimator(value, estimator)
    }
/// Returns the estimated total size of the given value using a specific
/// [`DataSizeEstimator`].
Returns the estimated total size of the given value using a specific
[`DataSizeEstimator`].
Returns the estimated total size of the given value using a specific [ ` DataSizeEstimator ` ] .
pub fn total_size_of_with_estimator<T, E>(value: &T, estimator: &E) -> usize
    where
        T: Any,
        E: DataSizeEstimator<T>,
    {
        Self::stack_size_of(value) + Self::heap_size_of_with_estimator(value, estimator)
    }
pub fn total_size_of_with_estimator < T , E > ( value : & T , estimator : & E ) -> usize where T : Any , E : DataSizeEstimator < T > , { Self :: stack_size_of ( value ) + Self :: heap_size_of_with_estimator ( value , estimator ) }
Returns the estimated total size of the given value using a specific
[`DataSizeEstimator`].
Returns the estimated total size of the given value using a specific [ ` DataSizeEstimator ` ] .
value
&T
estimator
&E