Trait spaces::Space[][src]

pub trait Space {
    type Value: Debug + Clone;
    fn dim(&self) -> usize;
fn card(&self) -> Card;
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Self::Value; }

Trait for defining geometric spaces.

Associated Types

The data representation of the space.

Required Methods

Return the number of dimensions in the space.

Return the number of elements in the set composing the space.

Generate a random sample from the space.

Implementations on Foreign Types

impl<D: Space> Space for Box<D>
[src]

impl<'a, D: Space> Space for &'a D
[src]

Implementors