Home
last modified time | relevance | path

Searched refs:choose_mut (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/rand/src/seq/
Dmod.rs86 fn choose_mut<R>(&mut self, rng: &mut R) -> Option<&mut Self::Item> in choose_mut() method
504 fn choose_mut<R>(&mut self, rng: &mut R) -> Option<&mut Self::Item> in choose_mut() method
693 *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()
/external/rust/crates/rand/
DCHANGELOG.md459 - Add `Rng` trait method `choose_mut`