pub trait ValueFormatter<V> {
    // Provided methods
    fn format(_value: &V) -> String { ... }
    fn format_ext(&self, value: &V) -> String { ... }
}
Expand description

Determine how we can format a value in a coordinate system by default

Provided Methods§

source

fn format(_value: &V) -> String

Format the value

source

fn format_ext(&self, value: &V) -> String

Determine how we can format a value in a coordinate system by default

Implementors§

source§

impl ValueFormatter<f32> for RangedCoordf32

source§

impl ValueFormatter<f64> for RangedCoordf64

source§

impl<PT, ST, P, S> ValueFormatter<NestedValue<PT, ST>> for NestedRange<P, S>where P: Ranged<ValueType = PT> + DiscreteRanged + ValueFormatter<PT>, S: Ranged<ValueType = ST> + ValueFormatter<ST>,

source§

impl<R: Ranged<FormatOption = DefaultFormatting>> ValueFormatter<<R as Ranged>::ValueType> for Rwhere R::ValueType: Debug,

source§

impl<T, D> ValueFormatter<SegmentValue<T>> for SegmentedCoord<D>where D: ValueFormatter<T> + DiscreteRanged + Ranged<ValueType = T>,

source§

impl<T, R, S, RM> ValueFormatter<T> for Linspace<R, S, RM>where R: Ranged<ValueType = T> + ValueFormatter<T>, RM: LinspaceRoundingMethod<T>, T: Add<S, Output = T> + PartialOrd + Clone, S: Clone,

source§

impl<T, R: DiscreteRanged<ValueType = T> + ValueFormatter<T>> ValueFormatter<T> for GroupBy<R>

source§

impl<T: TimeValue + Datelike + Clone> ValueFormatter<T> for Monthly<T>

source§

impl<T: TimeValue + Datelike + Clone> ValueFormatter<T> for Yearly<T>