Searched refs:choose_mut (Results 1 – 2 of 2) sorted by relevance
86 fn choose_mut<R>(&mut self, rng: &mut R) -> Option<&mut Self::Item> in choose_mut() method504 fn choose_mut<R>(&mut self, rng: &mut R) -> Option<&mut Self::Item> in choose_mut() method693 *chosen.choose_mut(&mut r).unwrap() += 1; in test_slice_choose()701 assert_eq!(v.choose_mut(&mut r), None); in test_slice_choose()713 assert_eq!(nums.choose_mut(&mut r), Some(&mut 10)); in value_stability_slice()
459 - Add `Rng` trait method `choose_mut`