LinearScanObjectSize

Trait 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§

Source

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.

Implementors§