Enum rv::data::DataOrSuffStat [−][src]
pub enum DataOrSuffStat<'a, X, Fx> where
X: 'a,
Fx: 'a + HasSuffStat<X>, { Data(&'a Vec<X>), SuffStat(&'a Fx::Stat), None, }
Holds either a sufficient statistic of a vector of data.
Variants
Data(&'a Vec<X>)
A Vec
of raw data
SuffStat(&'a Fx::Stat)
A sufficient statistic
None
No data
Methods
impl<'a, X, Fx> DataOrSuffStat<'a, X, Fx> where
X: 'a,
Fx: 'a + HasSuffStat<X>,
[src]
impl<'a, X, Fx> DataOrSuffStat<'a, X, Fx> where
X: 'a,
Fx: 'a + HasSuffStat<X>,
Trait Implementations
impl<'a, X: Debug, Fx: Debug> Debug for DataOrSuffStat<'a, X, Fx> where
X: 'a,
Fx: 'a + HasSuffStat<X>,
Fx::Stat: Debug,
[src]
impl<'a, X: Debug, Fx: Debug> Debug for DataOrSuffStat<'a, X, Fx> where
X: 'a,
Fx: 'a + HasSuffStat<X>,
Fx::Stat: Debug,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a, X: Clone, Fx: Clone> Clone for DataOrSuffStat<'a, X, Fx> where
X: 'a,
Fx: 'a + HasSuffStat<X>,
Fx::Stat: Clone,
[src]
impl<'a, X: Clone, Fx: Clone> Clone for DataOrSuffStat<'a, X, Fx> where
X: 'a,
Fx: 'a + HasSuffStat<X>,
Fx::Stat: Clone,
fn clone(&self) -> DataOrSuffStat<'a, X, Fx>
[src]
fn clone(&self) -> DataOrSuffStat<'a, X, Fx>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'a, X, Fx> Send for DataOrSuffStat<'a, X, Fx> where
X: Sync,
<Fx as HasSuffStat<X>>::Stat: Sync,
impl<'a, X, Fx> Send for DataOrSuffStat<'a, X, Fx> where
X: Sync,
<Fx as HasSuffStat<X>>::Stat: Sync,
impl<'a, X, Fx> Sync for DataOrSuffStat<'a, X, Fx> where
X: Sync,
<Fx as HasSuffStat<X>>::Stat: Sync,
impl<'a, X, Fx> Sync for DataOrSuffStat<'a, X, Fx> where
X: Sync,
<Fx as HasSuffStat<X>>::Stat: Sync,