Enum rand::distributions::weighted::WeightedError [−][src]
pub enum WeightedError { NoItem, InvalidWeight, AllWeightsZero, TooMany, }
Error type returned from WeightedIndex::new
.
Variants
The provided weight collection contains no items.
A weight is either less than zero, greater than the supported maximum or otherwise invalid.
All items in the provided weight collection are zero.
Too many weights are provided (length greater than u32::MAX
)
Trait Implementations
impl Clone for WeightedError
[src]
impl Clone for WeightedError
[src]fn clone(&self) -> WeightedError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Error for WeightedError
[src]
impl Error for WeightedError
[src]impl PartialEq<WeightedError> for WeightedError
[src]
impl PartialEq<WeightedError> for WeightedError
[src]