Trait rand_functors::RandomVariableRange
source · pub trait RandomVariableRange<R: RandomVariable + SampleUniform>{
// Required method
fn sample_space(&self) -> impl Iterator<Item = R>;
}Expand description
A (possibly inclusive) range of a RandomVariable that can be enumerated
or sampled from.
Required Methods§
sourcefn sample_space(&self) -> impl Iterator<Item = R>
fn sample_space(&self) -> impl Iterator<Item = R>
Produce an Iterator containing all possible values in this range.
Object Safety§
This trait is not object safe.