Trait Rescale

Source
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) -> i64
where S: Into<Rational>, D: Into<Rational>,

Source

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

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<T: Into<i64> + Clone> Rescale for T