Weighable

Trait Weighable 

Source
pub trait Weighable {
    // Required method
    fn measure(value: &Self) -> usize;
}
Expand description

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

Required Methods§

Source

fn measure(value: &Self) -> usize

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§