Trait plotters::coord::ranged1d::ReversibleRanged[][src]

pub trait ReversibleRanged: Ranged {
    fn unmap(&self, input: i32, limit: (i32, i32)) -> Option<Self::ValueType>;
}
Expand description

The trait indicates the ranged value can be map reversely, which means an pixel-based coordinate is given, it’s possible to figure out the underlying logic value.

Required methods

fn unmap(&self, input: i32, limit: (i32, i32)) -> Option<Self::ValueType>[src]

Implementors

impl ReversibleRanged for RangedCoordf32[src]

fn unmap(&self, p: i32, (min, max): (i32, i32)) -> Option<f32>[src]

impl ReversibleRanged for RangedCoordf64[src]

fn unmap(&self, p: i32, (min, max): (i32, i32)) -> Option<f64>[src]

impl<DC: DiscreteRanged> ReversibleRanged for DC[src]

fn unmap(&self, input: i32, limit: (i32, i32)) -> Option<Self::ValueType>[src]