Struct sgx_rand::distributions::RandSample
source · [−]pub struct RandSample<Sup> { /* private fields */ }
Expand description
A wrapper for generating types that implement Rand
via the
Sample
& IndependentSample
traits.
Implementations
sourceimpl<Sup> RandSample<Sup>
impl<Sup> RandSample<Sup>
pub fn new() -> RandSample<Sup>
Trait Implementations
sourceimpl<Sup> Clone for RandSample<Sup>
impl<Sup> Clone for RandSample<Sup>
sourceimpl<Sup: Debug> Debug for RandSample<Sup>
impl<Sup: Debug> Debug for RandSample<Sup>
sourceimpl<Sup> Default for RandSample<Sup>
impl<Sup> Default for RandSample<Sup>
sourcefn default() -> RandSample<Sup>
fn default() -> RandSample<Sup>
Returns the “default value” for a type. Read more
sourceimpl<Sup: Rand> IndependentSample<Sup> for RandSample<Sup>
impl<Sup: Rand> IndependentSample<Sup> for RandSample<Sup>
sourcefn ind_sample<R: Rng>(&self, rng: &mut R) -> Sup
fn ind_sample<R: Rng>(&self, rng: &mut R) -> Sup
Generate a random value.
sourceimpl<Sup: Rand> Sample<Sup> for RandSample<Sup>
impl<Sup: Rand> Sample<Sup> for RandSample<Sup>
impl<Sup> Copy for RandSample<Sup>
Auto Trait Implementations
impl<Sup> RefUnwindSafe for RandSample<Sup>
impl<Sup> Send for RandSample<Sup>
impl<Sup> Sync for RandSample<Sup>
impl<Sup> Unpin for RandSample<Sup>
impl<Sup> UnwindSafe for RandSample<Sup>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more