pub trait ReversibleRanged: Ranged {
    // Required method
    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§

source

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

Perform the reverse mapping

Implementors§

source§

impl ReversibleRanged for RangedCoordf32

source§

impl ReversibleRanged for RangedCoordf64

source§

impl<DC: DiscreteRanged> ReversibleRanged for DC

source§

impl<DT> ReversibleRanged for RangedDateTime<DT>where DT: Datelike + Timelike + TimeValue + Clone + PartialOrd + Add<Duration, Output = DT> + Sub<DT, Output = Duration>, RangedDate<DT::DateType>: Ranged<ValueType = DT::DateType>,