Struct bdk_chain::bitcoin::secp256k1::rand::distributions::weighted::alias_method::WeightedIndex
source ยท pub struct WeightedIndex<W>where
W: Weight,{ /* private fields */ }
๐Deprecated since 0.8.0: moved to rand_distr crate
Implementationsยง
sourceยงimpl<W> WeightedIndex<W>where
W: Weight,
impl<W> WeightedIndex<W>where
W: Weight,
pub fn new(_weights: Vec<W>) -> Result<WeightedIndex<W>, WeightedError>
๐Deprecated since 0.8.0: moved to rand_distr crate
Trait Implementationsยง
Auto Trait Implementationsยง
impl<W> Freeze for WeightedIndex<W>
impl<W> RefUnwindSafe for WeightedIndex<W>where
W: RefUnwindSafe,
impl<W> Send for WeightedIndex<W>where
W: Send,
impl<W> Sync for WeightedIndex<W>where
W: Sync,
impl<W> Unpin for WeightedIndex<W>where
W: Unpin,
impl<W> UnwindSafe for WeightedIndex<W>where
W: UnwindSafe,
Blanket Implementationsยง
sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more