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§
Source§impl Clone for SequentialSampler
 
impl Clone for SequentialSampler
Source§fn clone(&self) -> SequentialSampler
 
fn clone(&self) -> SequentialSampler
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 SequentialSampler
 
impl Debug for SequentialSampler
Source§impl Hash for SequentialSampler
 
impl Hash for SequentialSampler
Source§impl IntoIterator for SequentialSampler
 
impl IntoIterator for SequentialSampler
Source§impl Len for SequentialSampler
 
impl Len for SequentialSampler
Source§impl Ord for SequentialSampler
 
impl Ord for SequentialSampler
Source§fn cmp(&self, other: &SequentialSampler) -> Ordering
 
fn cmp(&self, other: &SequentialSampler) -> 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 SequentialSampler
 
impl PartialEq for SequentialSampler
Source§impl PartialOrd for SequentialSampler
 
impl PartialOrd for SequentialSampler
Source§impl Sampler for SequentialSampler
 
impl Sampler for SequentialSampler
impl Copy for SequentialSampler
impl Eq for SequentialSampler
impl StructuralPartialEq for SequentialSampler
Auto Trait Implementations§
impl Freeze for SequentialSampler
impl RefUnwindSafe for SequentialSampler
impl Send for SequentialSampler
impl Sync for SequentialSampler
impl Unpin for SequentialSampler
impl UnwindSafe for SequentialSampler
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