[][src]Struct spaces::ProductSpace

pub struct ProductSpace<D>(_);

N-dimensional homogeneous space.

Represention of the Cartesian product of N topological spaces.

Methods

impl<D> ProductSpace<D>[src]

pub fn new(dimensions: Vec<D>) -> Self[src]

pub fn empty() -> Self[src]

pub fn iter(&self) -> SliceIter<D>[src]

pub fn into_iter(self) -> VecIntoIter<D>[src]

impl ProductSpace<Interval>[src]

impl ProductSpace<Equipartition>[src]

pub fn centres(&self) -> Vec<Vec<f64>>[src]

pub fn edges(&self) -> Vec<Vec<f64>>[src]

Trait Implementations

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

type Value = Vec<D::Value>

The data representation of the space.

impl<D, X> Surjection<Vec<X>, Vec<<D as Space>::Value>> for ProductSpace<D> where
    D: Space + Surjection<X, <D as Space>::Value>, 
[src]

impl<D: Space + Union + Clone> Union<ProductSpace<D>> for ProductSpace<D>[src]

fn union_many(self, other_spaces: &[S]) -> Self where
    Self: Sized
[src]

Return the smallest space enclosing self and all other_spaces of type Self.

impl<D: Space + Intersection + Clone> Intersection<ProductSpace<D>> for ProductSpace<D>[src]

fn intersect_many(self, other_spaces: &[S]) -> Self where
    Self: Sized
[src]

Return the smallest space enclosing self and all other_spaces of type Self.

impl<D: Clone> Clone for ProductSpace<D>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<D: PartialEq> PartialEq<ProductSpace<D>> for ProductSpace<D>[src]

impl<D: Space> IntoIterator for ProductSpace<D>[src]

type Item = D

The type of the elements being iterated over.

type IntoIter = IntoIter<D>

Which kind of iterator are we turning this into?

impl<D: Eq> Eq for ProductSpace<D>[src]

impl<D: Space> Add<D> for ProductSpace<D>[src]

type Output = Self

The resulting type after applying the + operator.

impl<D: Space> Add<ProductSpace<D>> for ProductSpace<D>[src]

type Output = Self

The resulting type after applying the + operator.

impl<D: Space> Index<usize> for ProductSpace<D>[src]

type Output = D

The returned type after indexing.

impl<D: Debug> Debug for ProductSpace<D>[src]

impl<D: Space + Display> Display for ProductSpace<D>[src]

impl<D> FromIterator<D> for ProductSpace<D>[src]

Auto Trait Implementations

impl<D> Send for ProductSpace<D> where
    D: Send

impl<D> Unpin for ProductSpace<D> where
    D: Unpin

impl<D> Sync for ProductSpace<D> where
    D: Sync

impl<D> RefUnwindSafe for ProductSpace<D> where
    D: RefUnwindSafe

impl<D> UnwindSafe for ProductSpace<D> where
    D: UnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]