Trait Weight

Source
pub trait Weight:
    SampleUniform
    + Unsigned
    + Zero
    + One
    + Debug
    + AddAssign
    + Clone
    + PartialOrd { }
Available on crate feature bag only.
Expand description

A trait representing a type that can be used as a weight in a WeightedBag.

§Implemented for

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§