pub struct WeightedIndex<W: Weight> { /* private fields */ }
👎Deprecated since 0.8.0: moved to rand_distr crate
Implementations§
Source§impl<W: Weight> WeightedIndex<W>
impl<W: Weight> WeightedIndex<W>
pub fn new(_weights: Vec<W>) -> Result<Self, 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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes