pub trait MallocConditionalShallowSizeOf {
// Required method
fn conditional_shallow_size_of(&self, ops: &mut MallocSizeOfOps) -> usize;
}Expand description
MallocConditionalSizeOf combined with MallocShallowSizeOf.
Required Methods§
Sourcefn conditional_shallow_size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn conditional_shallow_size_of(&self, ops: &mut MallocSizeOfOps) -> usize
conditional_size_of combined with shallow_size_of.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".