Trait burn::data::dataloader::batcher::DynBatcher

pub trait DynBatcher<I, O>: Send + Batcher<I, O> {
    // Required method
    fn clone_dyn(&self) -> Box<dyn DynBatcher<I, O>>;
}
Expand description

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

Any batcher that implements Clone should also implement this automatically.

Required Methods§

fn clone_dyn(&self) -> Box<dyn DynBatcher<I, O>>

Clone the batcher and returns a new one.

Implementors§

§

impl<B, I, O> DynBatcher<I, O> for B
where B: Batcher<I, O> + Clone + 'static,