pub trait ByteSized {
// Required method
fn estimated_bytes(&self) -> u64;
}Expand description
Values that can report an estimated in-memory byte footprint.
Required Methods§
Sourcefn estimated_bytes(&self) -> u64
fn estimated_bytes(&self) -> u64
Return the estimated memory footprint in bytes.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".