Trait Weighable
weight_cache
pub trait Weighable { fn measure(value: &Self) -> usize; }
A trait to implemented for the value type, providing a way to Weighable::measure the thing.
Weighable::measure
fn measure(value: &Self) -> usize