[][src]Enum rand::distributions::WeightedError

pub enum WeightedError {
    NoItem,
    NegativeWeight,
    AllWeightsZero,
}

Error type returned from WeightedIndex::new.

Variants

The provided iterator contained no items.

A weight lower than zero was used.

All items in the provided iterator had a weight of zero.

Trait Implementations

impl PartialEq<WeightedError> for WeightedError
[src]

This method tests for !=.

impl Clone for WeightedError
[src]

Performs copy-assignment from source. Read more

impl Copy for WeightedError
[src]

impl Eq for WeightedError
[src]

impl Display for WeightedError
[src]

impl Debug for WeightedError
[src]

impl Error for WeightedError
[src]

The lower-level source of this error, if any. Read more

Auto Trait Implementations

impl Send for WeightedError

impl Sync for WeightedError

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]