Trait burn::data::dataloader::DynDataLoader

pub trait DynDataLoader<O>: DataLoader<O> {
    // Required method
    fn clone_dyn(&self) -> Box<dyn DynDataLoader<O>>;
}
Expand description

A super trait for dataloader that allows it to be cloned dynamically.

Any dataloader that implements Clone should also implement this automatically.

Required Methods§

fn clone_dyn(&self) -> Box<dyn DynDataLoader<O>>

Clone the dataloader and returns a new one.

Implementors§

§

impl<D, O> DynDataLoader<O> for D
where D: DataLoader<O> + Clone + 'static,