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.