pub trait SwitchableDistribution<U>: Distribution + Sizedwhere
U: Event,{
// Required method
fn switch<'a>(
&'a self,
map: &'a HashMap<u32, U>
) -> SwitchedDistribution<'a, Self, Self::Value, Self::Condition>;
}pub trait SwitchableDistribution<U>: Distribution + Sizedwhere
U: Event,{
// Required method
fn switch<'a>(
&'a self,
map: &'a HashMap<u32, U>
) -> SwitchedDistribution<'a, Self, Self::Value, Self::Condition>;
}