cdshealpix

Trait Customf64

Source
pub trait Customf64 {
    // Required methods
    fn pow2(self) -> f64;
    fn twice(self) -> f64;
    fn half(self) -> f64;
    fn div_eucl(self, rhs: f64) -> f64;
    fn eq0(self) -> bool;
}
Expand description

Simple trait used to implements pow2, twice and half on f64.

Required Methods§

Source

fn pow2(self) -> f64

Source

fn twice(self) -> f64

Source

fn half(self) -> f64

Source

fn div_eucl(self, rhs: f64) -> f64

Source

fn eq0(self) -> bool

Implementations on Foreign Types§

Source§

impl Customf64 for f64

Source§

fn pow2(self) -> f64

Returns x^2

Source§

fn twice(self) -> f64

Returns 2 * x

Source§

fn half(self) -> f64

Returns x / 2

Source§

fn div_eucl(self, rhs: f64) -> f64

Duplicated code, because it is unstable so far.

Source§

fn eq0(self) -> bool

Implementors§