[][src]Trait spaces::Space

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

Trait for defining geometric spaces.

Associated Types

type Value: Clone

The data representation of the space.

Loading content...

Required methods

fn dim(&self) -> Dim

Return the dimensionality of the space.

fn card(&self) -> Card

Return the number of elements in the set comprising 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 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 NonNegativeReals[src]

type Value = f64

impl Space for PositiveReals[src]

type Value = f64

impl Space for Reals[src]

type Value = f64

impl Space for Empty[src]

type Value = ()

impl Space for Equipartition[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 ProductSpace<D>[src]

type Value = Vec<D::Value>

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

type Value = [D::Value; 2]

Loading content...