use std::cmp::PartialEq;
pub mod band;
pub mod linear;
#[derive(Debug, PartialEq)]
pub enum ScaleKind {
Band,
Linear,
}
pub trait Scale<T> {
fn scale(&self, domain: &T) -> f32;
fn ticks(&self) -> Vec<T>;
fn kind(&self) -> ScaleKind;
fn bandwidth(&self) -> f32;
fn is_range_reversed(&self) -> bool;
fn tick_offset(&self) -> f32;
}