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

Implementations on Foreign Types

Implementors