pub trait MappingStrategy {
// Required method
fn map(&self, count: u32, max_count: u32, num_colors: usize) -> usize;
}Expand description
Defines how to map counts to color indices.
pub trait MappingStrategy {
// Required method
fn map(&self, count: u32, max_count: u32, num_colors: usize) -> usize;
}Defines how to map counts to color indices.