Struct wasi_common::random::Deterministic [−][src]
pub struct Deterministic { /* fields omitted */ }
Expand description
Implement WasiRandom
using a deterministic cycle of bytes.
Implementations
Trait Implementations
impl RngCore for Deterministic
[src]
impl RngCore for Deterministic
[src]Auto Trait Implementations
impl RefUnwindSafe for Deterministic
impl Send for Deterministic
impl Sync for Deterministic
impl Unpin for Deterministic
impl UnwindSafe for Deterministic
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<R> Rng for R where
R: RngCore + ?Sized,
[src]
impl<R> Rng for R where
R: RngCore + ?Sized,
[src]fn gen<T>(&mut self) -> T where
Standard: Distribution<T>,
[src]
fn gen<T>(&mut self) -> T where
Standard: Distribution<T>,
[src]fn gen_range<T, R>(&mut self, range: R) -> T where
R: SampleRange<T>,
T: SampleUniform,
[src]
fn gen_range<T, R>(&mut self, range: R) -> T where
R: SampleRange<T>,
T: SampleUniform,
[src]Generate a random value in the given range. Read more
fn sample<T, D>(&mut self, distr: D) -> T where
D: Distribution<T>,
[src]
fn sample<T, D>(&mut self, distr: D) -> T where
D: Distribution<T>,
[src]Sample a new value, using the given distribution. Read more
fn sample_iter<T, D>(self, distr: D) -> DistIter<D, Self, T> where
D: Distribution<T>,
[src]
fn sample_iter<T, D>(self, distr: D) -> DistIter<D, Self, T> where
D: Distribution<T>,
[src]Create an iterator that generates values using the given distribution. Read more
fn gen_bool(&mut self, p: f64) -> bool
[src]
fn gen_bool(&mut self, p: f64) -> bool
[src]Return a bool with a probability p
of being true. Read more
fn gen_ratio(&mut self, numerator: u32, denominator: u32) -> bool
[src]
fn gen_ratio(&mut self, numerator: u32, denominator: u32) -> bool
[src]Return a bool with a probability of numerator/denominator
of being
true. I.e. gen_ratio(2, 3)
has chance of 2 in 3, or about 67%, of
returning true. If numerator == denominator
, then the returned value
is guaranteed to be true
. If numerator == 0
, then the returned
value is guaranteed to be false
. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,