Trait burn::data::dataset::transform::Mapper

pub trait Mapper<I, O>: Send + Sync {
    // Required method
    fn map(&self, item: &I) -> O;
}
Expand description

Basic mapper trait to be used with the mapper dataset.

Required Methods§

fn map(&self, item: &I) -> O

Maps an item of type I to an item of type O.

Implementors§