plotters::coord::ranged1d

Trait ValueFormatter

Source
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

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