Trait DeepSize
Source pub trait DeepSize {
// Required method
fn deep_size(&self) -> usize;
}
- size_of(primitive)
- length for chunks of data like strings and bytes (so not including the container overhead)
- deep size of all struct fields
- deep size of actual variant for enums