Derive Macro relearn::spaces::SampleSpace
source · [−]#[derive(SampleSpace)]
Expand description
Derive relearn::spaces::SampleSpace
for a struct as a Cartesian product space of its fields.
Actually implements rand::distributions::Distribution<Self::Element>
,
for which there is a blanket implementation of SampleSpace
.
Expects that Space
will be implemented according to #[derive(Space)]
.