Struct renforce::util::chooser::Weighted [] [src]

pub struct Weighted;

Chooses elements with probabilities proportional to their weights

Trait Implementations

impl Debug for Weighted
[src]

Formats the value using the given formatter.

impl Clone for Weighted
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Weighted
[src]

impl PartialEq for Weighted
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Clone> Chooser<T> for Weighted
[src]

returns an element of choices