Trait rand::distributions::Weight
source · pub trait Weight: Clone {
const ZERO: Self;
// Required method
fn checked_add_assign(&mut self, v: &Self) -> Result<(), ()>;
}
Expand description
Bounds on a weight
See usage in WeightedIndex
.
Required Associated Constants§
Required Methods§
Object Safety§
This trait is not object safe.