[][src]Trait spaces::Space

pub trait Space {
    type Value: Debug + Clone;
    fn dim(&self) -> usize;
fn card(&self) -> Card; }

Trait for defining geometric spaces.

Associated Types

type Value: Debug + Clone

The data representation of the space.

Loading content...

Required methods

fn dim(&self) -> usize

Return the dimensionality of the space.

fn card(&self) -> Card

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

Loading content...

Implementations on Foreign Types

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

type Value = D::Value

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

type Value = D::Value

Loading content...

Implementors

impl Space for NonNegativeReals[src]

type Value = f64

impl Space for PositiveReals[src]

type Value = f64

impl Space for Reals[src]

type Value = f64

impl Space for Binary[src]

type Value = bool

impl Space for Integers[src]

type Value = i64

impl Space for Naturals[src]

type Value = u64

impl Space for NonNegativeIntegers[src]

type Value = u64

impl Space for NonZeroIntegers[src]

type Value = i64

impl Space for Ordinal[src]

type Value = usize

impl Space for Partition[src]

type Value = usize

impl Space for Interval<f64>[src]

type Value = f64

impl Space for Interval<i64>[src]

type Value = i64

impl<D1: Space, D2: Space> Space for PairSpace<D1, D2>[src]

type Value = (D1::Value, D2::Value)

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

type Value = [D::Value; 2]

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

type Value = Vector<D::Value>

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

type Value = HashMap<String, D::Value>

Loading content...