pub struct RandomSampler { /* private fields */ }
Expand description
Sampler that returns random index between zero and data_source_len
.
Trait Implementations§
Source§impl Clone for RandomSampler
impl Clone for RandomSampler
Source§fn clone(&self) -> RandomSampler
fn clone(&self) -> RandomSampler
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 Debug for RandomSampler
impl Debug for RandomSampler
Source§impl Hash for RandomSampler
impl Hash for RandomSampler
Source§impl IntoIterator for RandomSampler
impl IntoIterator for RandomSampler
Source§impl Len for RandomSampler
impl Len for RandomSampler
Source§impl Ord for RandomSampler
impl Ord for RandomSampler
Source§fn cmp(&self, other: &RandomSampler) -> Ordering
fn cmp(&self, other: &RandomSampler) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RandomSampler
impl PartialEq for RandomSampler
Source§impl PartialOrd for RandomSampler
impl PartialOrd for RandomSampler
Source§impl Sampler for RandomSampler
impl Sampler for RandomSampler
impl Copy for RandomSampler
impl Eq for RandomSampler
impl StructuralPartialEq for RandomSampler
Auto Trait Implementations§
impl Freeze for RandomSampler
impl RefUnwindSafe for RandomSampler
impl Send for RandomSampler
impl Sync for RandomSampler
impl Unpin for RandomSampler
impl UnwindSafe for RandomSampler
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more