ValueFormatter

Trait ValueFormatter 

Source
pub trait ValueFormatter<V> {
    // Required method
    fn format(value: &V) -> String;
}
Expand description

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

Required Methods§

Source

fn format(value: &V) -> String

Format the value

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

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 R
where 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>