Trait rv::data::CategoricalDatum [−][src]
pub trait CategoricalDatum: Sized + Sync + Copy { fn into_usize(self) -> usize; fn from_usize(n: usize) -> Self; }
Expand description
The trait that data must implemented by all data used with the
Categorical
distribution
Required methods
fn into_usize(self) -> usize
[src]fn from_usize(n: usize) -> Self
[src]