pub struct DataLoader<D, C>{ /* private fields */ }Expand description
Data loader.
Implementations§
Source§impl<D, C> DataLoader<D, C>
impl<D, C> DataLoader<D, C>
Sourcepub fn with_num_workers(self, num_workers: usize) -> Self
pub fn with_num_workers(self, num_workers: usize) -> Self
With num workers.
Sourcepub fn with_shuffle(self, shuffle: bool) -> Self
pub fn with_shuffle(self, shuffle: bool) -> Self
With shuffle.
Trait Implementations§
Source§impl<D, C> IntoIterator for &DataLoader<D, C>
impl<D, C> IntoIterator for &DataLoader<D, C>
Auto Trait Implementations§
impl<D, C> Freeze for DataLoader<D, C>
impl<D, C> RefUnwindSafe for DataLoader<D, C>where
D: RefUnwindSafe,
C: RefUnwindSafe,
impl<D, C> Send for DataLoader<D, C>
impl<D, C> Sync for DataLoader<D, C>
impl<D, C> Unpin for DataLoader<D, C>
impl<D, C> UnsafeUnpin for DataLoader<D, C>
impl<D, C> UnwindSafe for DataLoader<D, C>where
D: RefUnwindSafe,
C: RefUnwindSafe,
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