pub struct Random<I>where
I: SampleUniform + PartialOrd,{ /* private fields */ }Expand description
A policy that selects an instance randomly.
Implementations§
Trait Implementations§
Source§impl<I, S, R> BalancePolicy<S, R> for Random<I>where
I: SampleUniform + PartialOrd,
impl<I, S, R> BalancePolicy<S, R> for Random<I>where
I: SampleUniform + PartialOrd,
Auto Trait Implementations§
impl<I> Freeze for Random<I>
impl<I> RefUnwindSafe for Random<I>
impl<I> Send for Random<I>
impl<I> Sync for Random<I>
impl<I> Unpin for Random<I>
impl<I> UnwindSafe for Random<I>
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