[][src]Trait plotters::coord::DiscreteRanged

pub trait DiscreteRanged where
    Self: Ranged
{ type RangeParameter; fn get_range_parameter(&self) -> Self::RangeParameter;
fn next_value(
        this: &Self::ValueType,
        param: &Self::RangeParameter
    ) -> Self::ValueType;
fn previous_value(
        this: &Self::ValueType,
        param: &Self::RangeParameter
    ) -> Self::ValueType; }

The trait indicates the coordinate is discrete, so that we can draw histogram on it

Associated Types

type RangeParameter

Loading content...

Required methods

fn get_range_parameter(&self) -> Self::RangeParameter

fn next_value(
    this: &Self::ValueType,
    param: &Self::RangeParameter
) -> Self::ValueType

Get the smallest value that is larger than the this value

fn previous_value(
    this: &Self::ValueType,
    param: &Self::RangeParameter
) -> Self::ValueType

Get the largest value that is smaller than this value

Loading content...

Implementors

impl DiscreteRanged for RangedCoordi128[src]

type RangeParameter = ()

impl DiscreteRanged for RangedCoordi32[src]

type RangeParameter = ()

impl DiscreteRanged for RangedCoordi64[src]

type RangeParameter = ()

impl DiscreteRanged for RangedCoordu128[src]

type RangeParameter = ()

impl DiscreteRanged for RangedCoordu32[src]

type RangeParameter = ()

impl DiscreteRanged for RangedCoordu64[src]

type RangeParameter = ()

impl<T> DiscreteRanged for GroupBy<T> where
    T::ValueType: PrimInt + ToPrimitive + FromPrimitive + Mul,
    T: Ranged + DiscreteRanged
[src]

type RangeParameter = <T as DiscreteRanged>::RangeParameter

impl<Z: TimeZone> DiscreteRanged for RangedDate<Z>[src]

type RangeParameter = ()

Loading content...