Struct flow_sdk::algorithms::secp256k1::rand::distributions::WeightedChoice [−][src]
pub struct WeightedChoice<'a, T> where
T: 'a, { /* fields omitted */ }
👎 Deprecated since 0.6.0:
use WeightedIndex instead
Expand description
A distribution that selects from a finite collection of weighted items.
Deprecated: use WeightedIndex
instead.
Implementations
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
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for WeightedChoice<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for WeightedChoice<'a, T> where
T: Send,
impl<'a, T> Sync for WeightedChoice<'a, T> where
T: Sync,
impl<'a, T> Unpin for WeightedChoice<'a, T>
impl<'a, T> !UnwindSafe for WeightedChoice<'a, T>
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