pub trait HasSize {
// Required method
fn size(&self) -> u32;
}Expand description
The HasSize trait provides a function for getting the current byte size.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".