Skip to main content

Recip

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

Available on crate feature std, or non-crate feature libm only.
Source§

fn recip(self) -> f32

Source§

impl Recip for f64

Available on crate feature std, or non-crate feature libm only.
Source§

fn recip(self) -> f64

Implementors§