Struct ai_dataloader::indexable::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§
source§impl Clone for SequentialSampler
impl Clone for SequentialSampler
source§fn clone(&self) -> SequentialSampler
fn clone(&self) -> SequentialSampler
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 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<SequentialSampler> for SequentialSampler
impl PartialEq<SequentialSampler> for SequentialSampler
source§fn eq(&self, other: &SequentialSampler) -> bool
fn eq(&self, other: &SequentialSampler) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<SequentialSampler> for SequentialSampler
impl PartialOrd<SequentialSampler> for SequentialSampler
source§fn partial_cmp(&self, other: &SequentialSampler) -> Option<Ordering>
fn partial_cmp(&self, other: &SequentialSampler) -> 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 moresource§impl 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§
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