Enum cap_rand::distributions::WeightedError [−][src]
pub enum WeightedError {
NoItem,
InvalidWeight,
AllWeightsZero,
TooMany,
}Expand description
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, NaN, or otherwise invalid.
All items in the provided weight collection are zero.
Too many weights are provided (length greater than u32::MAX)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WeightedErrorimpl Send for WeightedErrorimpl Sync for WeightedErrorimpl Unpin for WeightedErrorimpl UnwindSafe for WeightedErrorBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V