+impl<'a, T: fmt::Debug> fmt::Debug for WeightedChoice<'a, T> {
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ f.debug_struct("WeightedChoice")
+ .field("items", &self.items)
+ .field("weight_range", &self.weight_range)
+ .finish()
+ }
+}
+