Trait ValueFormatter

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§

fn format(_value: &V) -> String

Format the value

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

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

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§

§

impl ValueFormatter<f32> for RangedCoordf32

§

impl ValueFormatter<f64> for RangedCoordf64

§

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>,

§

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

§

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

§

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

§

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

§

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

§

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,