(&self, rng: &mut R)
| 24 | } |
| 25 | impl Distribution<LegacyPrefix> for Standard { |
| 26 | fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> LegacyPrefix { |
| 27 | match rng.gen_range(1..=3) { |
| 28 | 1 => LegacyPrefix::Group1(rng.gen()), |
| 29 | 2 => LegacyPrefix::Group2(rng.gen()), |
| 30 | 3 => LegacyPrefix::Group3(rng.gen()), |
| 31 | _ => unreachable!(), |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | |
| 36 |
nothing calls this directly
no test coverage detected