Struct flow_sdk::algorithms::secp256k1::rand::distributions::Weighted [−][src]
pub struct Weighted<T> {
pub weight: u32,
pub item: T,
}
👎 Deprecated since 0.6.0:
use WeightedIndex instead
Expand description
A value with a particular weight for use with WeightedChoice
.
Fields
weight: u32
👎 Deprecated since 0.6.0:
use WeightedIndex instead
The numerical weight of this item
item: T
👎 Deprecated since 0.6.0:
use WeightedIndex instead
The actual item which is being weighted
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Weighted<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Weighted<T> where
T: UnwindSafe,
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