跳到主要内容

Rescale

搜索

trait Rescale 

源代码
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>;
}

必需方法§

源代码

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>,

Dyn 兼容性§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

实现者§

源代码§

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