pub trait MemorySize: Sized {
const INLINE_ONLY: bool = false;
// Required method
fn memory_size(&self) -> usize;
}Provided Associated Constants§
Sourceconst INLINE_ONLY: bool = false
const INLINE_ONLY: bool = false
True only when every value occupies exactly size_of::<Self>() bytes,
with no separately owned allocations or additional accounting charge.
Required Methods§
fn memory_size(&self) -> usize
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".