pub trait Rescale {
    // Required methods
    fn rescale<S, D>(&self, source: S, destination: D) -> i64
       where S: Into<Rational>,
             D: Into<Rational>;
    fn rescale_with<S, D>(
        &self,
        source: S,
        destination: D,
        rounding: Rounding
    ) -> i64
       where S: Into<Rational>,
             D: Into<Rational>;
}

Required Methods§

source

fn rescale<S, D>(&self, source: S, destination: D) -> i64where S: Into<Rational>, D: Into<Rational>,

source

fn rescale_with<S, D>(&self, source: S, destination: D, rounding: Rounding) -> i64where S: Into<Rational>, D: Into<Rational>,

Implementors§

source§

impl<T: Into<i64> + Clone> Rescale for T