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§

source

fn size(object: ObjectReference) -> usize

The object size in bytes for the given object.

Object Safety§

This trait is not object safe.

Implementors§