Trait weight_cache::Weigheable[][src]

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

A trait to implemented for the value type, providing a way to [measure] the thing.

Required methods

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

Loading content...

Implementors

Loading content...