Struct spaces::product::PairSpace[][src]

pub struct PairSpace<D1, D2>(pub D1, pub D2)
where
    D1: Space,
    D2: Space
;

2-dimensional homogeneous space.

Methods

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

impl PairSpace<Interval, Interval>
[src]

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

Formats the value using the given formatter. Read more

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

The data representation of the space.

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.

impl<D1, X1, D2, X2> Surjection<(X1, X2), (D1::Value, D2::Value)> for PairSpace<D1, D2> where
    D1: Space + Surjection<X1, <D1 as Space>::Value>,
    D2: Space + Surjection<X2, <D2 as Space>::Value>, 
[src]

Map value from domain onto codomain.

Auto Trait Implementations

impl<D1, D2> Send for PairSpace<D1, D2> where
    D1: Send,
    D2: Send

impl<D1, D2> Sync for PairSpace<D1, D2> where
    D1: Sync,
    D2: Sync