imsz

Trait Ratio

Source
pub(crate) trait Ratio<T: Sized> {
    // Required method
    fn value<R>(&self) -> R::Output
       where R: Sized + Div + From<T>;
}

Required Methods§

Source

fn value<R>(&self) -> R::Output
where R: Sized + Div + From<T>,

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.

Implementations on Foreign Types§

Source§

impl Ratio<i32> for (i32, i32)

Source§

fn value<R>(&self) -> R::Output
where R: Sized + Div + From<i32>,

Source§

impl Ratio<u32> for (u32, u32)

Source§

fn value<R>(&self) -> R::Output
where R: Sized + Div + From<u32>,

Implementors§