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,
);
}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,
);
}