pub trait SbInt:
Copy
+ Eq
+ PartialOrd
+ AddAssign
+ Add<Output = Self>
+ Mul<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);
}Required Associated Constants§
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)
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.