pub struct RandomPick<I, S>where
I: SampleUniform + PartialOrd,{ /* private fields */ }Implementations§
Source§impl<I, S> RandomPick<I, S>
impl<I, S> RandomPick<I, S>
pub fn new(services: impl IntoIterator<Item = (I, S)>) -> Self
Trait Implementations§
Source§impl<I, S: Clone> Clone for RandomPick<I, S>
impl<I, S: Clone> Clone for RandomPick<I, S>
Source§fn clone(&self) -> RandomPick<I, S>
fn clone(&self) -> RandomPick<I, S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<I, S> Debug for RandomPick<I, S>where
I: SampleUniform + PartialOrd,
impl<I, S> Debug for RandomPick<I, S>where
I: SampleUniform + PartialOrd,
Source§impl<I, R, S> Service<R> for RandomPick<I, S>
impl<I, R, S> Service<R> for RandomPick<I, S>
Auto Trait Implementations§
impl<I, S> Freeze for RandomPick<I, S>
impl<I, S> RefUnwindSafe for RandomPick<I, S>
impl<I, S> Send for RandomPick<I, S>
impl<I, S> Sync for RandomPick<I, S>
impl<I, S> Unpin for RandomPick<I, S>
impl<I, S> UnwindSafe for RandomPick<I, S>
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