Trait mmtk::util::linear_scan::LinearScanObjectSize
source · 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.
Object Safety§
This trait is not object safe.