Trait nekolib::math::frac_approx::SbInt
source · pub trait SbInt: Copy + Eq + PartialOrd<Self> + AddAssign<Self> + Add<Self, Output = Self> + Mul<Self, Output = Self> + Display + Debug {
const ZERO: Self;
const ONE: Self;
const SIGNED: bool;
// Required methods
fn lt1(self, other: Self) -> bool;
fn avg(self, other: Self) -> Self;
fn abs(self) -> Self;
fn neg(self) -> Self;
fn steps(self, from: (Self, Self), to: (Self, Self)) -> Self;
fn lowest_frac() -> (Self, Self);
fn highest_frac() -> (Self, Self);
fn zero_frac() -> (Self, Self);
}