Skip to main content

LoaderSource

Trait LoaderSource 

Source
pub trait LoaderSource: Sealed {
    type Dataset;

    // Required method
    fn dataset(&self) -> &Self::Dataset;
}
Expand description

The dataset of a DataLoader, as the loader holds it: a SyncSource from DataLoader::builder, or an AsyncSource from DataLoader::builder_async (feature async). Sealed: these two are the only sources.

Required Associated Types§

Source

type Dataset

The dataset: a Dataset or an AsyncDataset.

Required Methods§

Source

fn dataset(&self) -> &Self::Dataset

The dataset.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§