pub trait DeepSize {
// Required method
fn deep_size(&self) -> usize;
}Expand description
Trait for calculating deep/heap memory size of a value
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".