Trait memory_lru::ResidentSize
source · pub trait ResidentSize {
fn resident_size(&self) -> usize;
}
Expand description
An indicator of the resident in memory of a value.
Required Methods§
sourcefn resident_size(&self) -> usize
fn resident_size(&self) -> usize
Return the resident size of the value. Users of the trait will depend on this value to remain stable unless the value is mutated.