pub trait HeapSize {
// Required method
fn heap_size(&self) -> usize;
}Expand description
Trait for calculating the size of various containers
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".