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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".