Skip to main content

Mapper

Trait Mapper 

Source
pub trait Mapper<I, O>: Send + Sync {
    // Required method
    fn map(&self, item: &I) -> O;
}
Available on crate features std and dataset only.
Expand description

Basic mapper trait to be used with the mapper dataset.

Required Methods§

Source

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

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

Implementors§