Trait spaces::dimensions::Dimension  
                   
                       [−]
                   
               [src]
pub trait Dimension {
    type Value: Debug + Clone;
    fn sample(&self, rng: &mut ThreadRng) -> Self::Value;
    fn convert(&self, val: f64) -> Self::Value;
    fn span(&self) -> Span;
}The basic dimension type.
Associated Types
Required Methods
fn sample(&self, rng: &mut ThreadRng) -> Self::Value
Sample a random value contained by this dimension.
fn convert(&self, val: f64) -> Self::Value
Map a compatible input into a valid value of this dimension.
fn span(&self) -> Span
Returns the total span of this dimension.