Struct ai_dataloader::sampler::SequentialSampler  
source · [−]pub struct SequentialSampler {
    pub data_source_len: usize,
}Expand description
Yield index from zero to data_source_len in ascending order.
Fields
data_source_len: usizeThe length of the dataset that will be sampled.
Trait Implementations
sourceimpl Clone for SequentialSampler
 
impl Clone for SequentialSampler
sourcefn clone(&self) -> SequentialSampler
 
fn clone(&self) -> SequentialSampler
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresourceimpl Debug for SequentialSampler
 
impl Debug for SequentialSampler
sourceimpl Hash for SequentialSampler
 
impl Hash for SequentialSampler
sourceimpl IntoIterator for SequentialSampler
 
impl IntoIterator for SequentialSampler
sourceimpl Len for SequentialSampler
 
impl Len for SequentialSampler
sourceimpl Ord for SequentialSampler
 
impl Ord for SequentialSampler
sourcefn cmp(&self, other: &SequentialSampler) -> Ordering
 
fn cmp(&self, other: &SequentialSampler) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
 
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
 
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
    Self: PartialOrd<Self>,
 
fn clamp(self, min: Self, max: Self) -> Selfwhere
    Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SequentialSampler> for SequentialSampler
 
impl PartialEq<SequentialSampler> for SequentialSampler
sourcefn eq(&self, other: &SequentialSampler) -> bool
 
fn eq(&self, other: &SequentialSampler) -> bool
sourceimpl PartialOrd<SequentialSampler> for SequentialSampler
 
impl PartialOrd<SequentialSampler> for SequentialSampler
sourcefn partial_cmp(&self, other: &SequentialSampler) -> Option<Ordering>
 
fn partial_cmp(&self, other: &SequentialSampler) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl Sampler for SequentialSampler
 
impl Sampler for SequentialSampler
impl Copy for SequentialSampler
impl Eq for SequentialSampler
impl StructuralEq for SequentialSampler
impl StructuralPartialEq for SequentialSampler
Auto Trait Implementations
impl RefUnwindSafe for SequentialSampler
impl Send for SequentialSampler
impl Sync for SequentialSampler
impl Unpin for SequentialSampler
impl UnwindSafe for SequentialSampler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more