var searchIndex = {}; searchIndex["random_wheel"] = {"doc":"A Little implementation of the random-wheel principle, `RandomWheel<T>`.\nhttps://wikipedia.org/wiki/Fitness_proportionate_selection","items":[[3,"RandomWheel","random_wheel","a little implementation of a random-wheel.",null,null],[11,"clone","","",0,null],[11,"into_iter","","Creates a consuming iterator, that is, one that moves each value out of\nthe randomWheel (from start to end).",0,null],[11,"from_vec","","create a new random-wheel from vector.\n# Example",0,{"inputs":[{"name":"vec"}],"output":{"name":"randomwheel"}}],[11,"new","","create a new empty random-wheel.\n# Example",0,{"inputs":[],"output":{"name":"randomwheel"}}],[11,"with_capacity","","Creates an empty RandomWheel with space for at least n elements.\n# Example",0,{"inputs":[{"name":"usize"}],"output":{"name":"randomwheel"}}],[11,"reserve","","Reserves capacity for at least `additional` more elements to be inserted in the given `Ringbuf`.\nThe collection may reserve more space to avoid frequent reallocations.\n# Example",0,null],[11,"capacity","","Returns the number of elements the RandomWheel can hold without reallocating.\n# Example",0,null],[11,"len","","returns the number of elements in the wheel.\n# Example",0,null],[11,"clear","","remove all elements in this wheel.\n# Example",0,null],[11,"is_empty","","returns `true` if this wheel is empty else return `false`.\n# Example",0,null],[11,"iter","","Returns an iterator over the slice.\n# Example",0,null],[11,"iter_mut","","Returns an iterator that allows modifying each value.\n# Example",0,null],[11,"push","","add an element associated with a probability.\n# Example",0,null],[11,"proba_sum","","returns total of luck you pushed.\n# Example",0,null],[11,"peek","","returns a ref to the randomly peeked element.\n# Example",0,null],[11,"peek_mut","","returns a ref to the randomly peeked element.\n# Example",0,null],[11,"peek_with_proba","","returns a ref to the randomly peeked element.\n# Example",0,null],[11,"peek_mut_with_proba","","returns a ref to the randomly peeked element.\n# Example",0,null],[11,"pop","","removes a randomly peeked element and return it.\n# Example",0,null],[11,"pop_with_proba","","removes a randomly peeked element and return it.\n# Example",0,null]],"paths":[[3,"RandomWheel"]]}; initSearch(searchIndex);