Trait weight_cache::Weighable[][src]

pub trait Weighable {
    fn measure(value: &Self) -> usize;
}

A trait to implemented for the value type, providing a way to Weighable::measure the thing.

Required methods

fn measure(value: &Self) -> usize[src]

Loading content...

Implementors

Loading content...