userand::Rng;usesuper::space::Space;/// A space that can generate random samples, optionally constrained by a mask.
pubtraitSampleSpace: Space {/// The type used to constrain sampling (e.g., a boolean mask for discrete spaces).
typeMask;/// Draws a random sample from the space.
////// If `mask` is provided, sampling is restricted to the elements allowed by the mask.
fnsample<R: Rng>(&self, rng:&mut R, mask:Option<&Self::Mask>)->Self::Element;}