Struct ai_dataloader::indexable::sampler::RandomSampler
source · 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 copy 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<RandomSampler> for RandomSampler
impl PartialEq<RandomSampler> for RandomSampler
source§fn eq(&self, other: &RandomSampler) -> bool
fn eq(&self, other: &RandomSampler) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<RandomSampler> for RandomSampler
impl PartialOrd<RandomSampler> for RandomSampler
source§fn partial_cmp(&self, other: &RandomSampler) -> Option<Ordering>
fn partial_cmp(&self, other: &RandomSampler) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more