pub struct UniformFBig<R: Round, const B: Word> { /* private fields */ }
Expand description

The back-end implementing UniformSampler for FBig (and DBig).

See the module (rand) level documentation for examples.

Implementations§

Same as UniformSampler::new but with an additional argument to specify the precision of the sampled FBig.

Same as UniformSampler::new_inclusive but with an additional argument to specify the precision of the sampled FBig.

Trait Implementations§

Generate a random value of T, using rng as the source of randomness.
Create an iterator that generates random values of T, using rng as the source of randomness. Read more
Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more
The type sampled by this implementation.
Construct self, with inclusive lower bound and exclusive upper bound [low, high). Read more
Construct self, with inclusive bounds [low, high]. Read more
Sample a value.
Sample a single value uniformly from a range with inclusive lower bound and exclusive upper bound [low, high). Read more
Sample a single value uniformly from a range with inclusive lower bound and inclusive upper bound [low, high]. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert self to an expression for Diesel’s query builder. Read more
Convert &self to an expression for Diesel’s query builder. Read more
Convert self to an expression for Diesel’s query builder. Read more
Convert &self to an expression for Diesel’s query builder. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.