Struct flow_sdk::algorithms::secp256k1::rand::distributions::uniform::UniformDuration [−][src]
pub struct UniformDuration { /* fields omitted */ }
Expand description
The back-end implementing UniformSampler
for Duration
.
Unless you are implementing UniformSampler
for your own types, this type
should not be used directly, use Uniform
instead.
Trait Implementations
pub fn new<B1, B2>(low_b: B1, high_b: B2) -> UniformDuration where
B1: SampleBorrow<<UniformDuration as UniformSampler>::X>,
B2: SampleBorrow<<UniformDuration as UniformSampler>::X>,
pub fn new<B1, B2>(low_b: B1, high_b: B2) -> UniformDuration where
B1: SampleBorrow<<UniformDuration as UniformSampler>::X>,
B2: SampleBorrow<<UniformDuration as UniformSampler>::X>,
Construct self, with inclusive lower bound and exclusive upper bound
[low, high)
. Read more
pub fn new_inclusive<B1, B2>(low_b: B1, high_b: B2) -> UniformDuration where
B1: SampleBorrow<<UniformDuration as UniformSampler>::X>,
B2: SampleBorrow<<UniformDuration as UniformSampler>::X>,
pub fn new_inclusive<B1, B2>(low_b: B1, high_b: B2) -> UniformDuration where
B1: SampleBorrow<<UniformDuration as UniformSampler>::X>,
B2: SampleBorrow<<UniformDuration as UniformSampler>::X>,
Construct self, with inclusive bounds [low, high]
. Read more
fn sample_single<R, B1, B2>(low: B1, high: B2, rng: &mut R) -> Self::X where
R: Rng + ?Sized,
B1: SampleBorrow<Self::X>,
B2: SampleBorrow<Self::X>,
fn sample_single<R, B1, B2>(low: B1, high: B2, rng: &mut R) -> Self::X where
R: Rng + ?Sized,
B1: SampleBorrow<Self::X>,
B2: SampleBorrow<Self::X>,
Sample a single value uniformly from a range with inclusive lower bound
and exclusive upper bound [low, high)
. Read more
Auto Trait Implementations
impl RefUnwindSafe for UniformDuration
impl Send for UniformDuration
impl Sync for UniformDuration
impl Unpin for UniformDuration
impl UnwindSafe for UniformDuration
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more