SizeEstimator

Trait SizeEstimator 

Source
pub trait SizeEstimator: Send + Sync {
    // Required methods
    fn estimate_size(&self, type_name: &str) -> Option<usize>;
    fn learn_from_real_allocation(
        &mut self,
        type_name: &str,
        actual_size: usize,
    );
}

Required Methods§

Source

fn estimate_size(&self, type_name: &str) -> Option<usize>

Source

fn learn_from_real_allocation(&mut self, type_name: &str, actual_size: usize)

Implementors§