Trait palette::num::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.

Object Safety§

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§