palette::num

Trait Recip

Source
pub trait Recip {
    // Required method
    fn recip(self) -> Self;
}
Expand description

Method for calculating 1 / x.

Required Methods§

Source

fn recip(self) -> Self

Return 1 / self.

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 Recip for f32

Source§

fn recip(self) -> Self

Source§

impl Recip for f64

Source§

fn recip(self) -> Self

Implementors§