pub trait LinearScanObjectSize {
// Required method
fn size(object: ObjectReference) -> usize;
}Expand description
Describe object size for linear scan. Different policies may have different object sizes (e.g. extra metadata, etc)
Required Methods§
Sourcefn size(object: ObjectReference) -> usize
fn size(object: ObjectReference) -> usize
The object size in bytes for the given object.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.