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);
}

Required Associated Constants§

source

const ZERO: Self

source

const ONE: Self

source

const SIGNED: bool

Required Methods§

source

fn lt1(self, other: Self) -> bool

source

fn avg(self, other: Self) -> Self

source

fn abs(self) -> Self

source

fn neg(self) -> Self

source

fn steps(self, from: (Self, Self), to: (Self, Self)) -> Self

source

fn lowest_frac() -> (Self, Self)

source

fn highest_frac() -> (Self, Self)

source

fn zero_frac() -> (Self, Self)

Implementations on Foreign Types§

source§

impl SbInt for i16

source§

const ZERO: i16 = 0i16

source§

const ONE: i16 = 1i16

source§

const SIGNED: bool = true

source§

fn lt1(self, other: Self) -> bool

source§

fn avg(self, other: Self) -> Self

source§

fn abs(self) -> Self

source§

fn neg(self) -> Self

source§

fn steps(self, from: (Self, Self), to: (Self, Self)) -> Self

source§

fn lowest_frac() -> (Self, Self)

source§

fn highest_frac() -> (Self, Self)

source§

fn zero_frac() -> (Self, Self)

source§

impl SbInt for u64

source§

const ZERO: u64 = 0u64

source§

const ONE: u64 = 1u64

source§

const SIGNED: bool = false

source§

fn lt1(self, other: Self) -> bool

source§

fn avg(self, other: Self) -> Self

source§

fn abs(self) -> Self

source§

fn neg(self) -> Self

source§

fn steps(self, from: (Self, Self), to: (Self, Self)) -> Self

source§

fn lowest_frac() -> (Self, Self)

source§

fn highest_frac() -> (Self, Self)

source§

fn zero_frac() -> (Self, Self)

source§

impl SbInt for u16

source§

const ZERO: u16 = 0u16

source§

const ONE: u16 = 1u16

source§

const SIGNED: bool = false

source§

fn lt1(self, other: Self) -> bool

source§

fn avg(self, other: Self) -> Self

source§

fn abs(self) -> Self

source§

fn neg(self) -> Self

source§

fn steps(self, from: (Self, Self), to: (Self, Self)) -> Self

source§

fn lowest_frac() -> (Self, Self)

source§

fn highest_frac() -> (Self, Self)

source§

fn zero_frac() -> (Self, Self)

source§

impl SbInt for i8

source§

const ZERO: i8 = 0i8

source§

const ONE: i8 = 1i8

source§

const SIGNED: bool = true

source§

fn lt1(self, other: Self) -> bool

source§

fn avg(self, other: Self) -> Self

source§

fn abs(self) -> Self

source§

fn neg(self) -> Self

source§

fn steps(self, from: (Self, Self), to: (Self, Self)) -> Self

source§

fn lowest_frac() -> (Self, Self)

source§

fn highest_frac() -> (Self, Self)

source§

fn zero_frac() -> (Self, Self)

source§

impl SbInt for i128

source§

const ZERO: i128 = 0i128

source§

const ONE: i128 = 1i128

source§

const SIGNED: bool = true

source§

fn lt1(self, other: Self) -> bool

source§

fn avg(self, other: Self) -> Self

source§

fn abs(self) -> Self

source§

fn neg(self) -> Self

source§

fn steps(self, from: (Self, Self), to: (Self, Self)) -> Self

source§

fn lowest_frac() -> (Self, Self)

source§

fn highest_frac() -> (Self, Self)

source§

fn zero_frac() -> (Self, Self)

source§

impl SbInt for u8

source§

const ZERO: u8 = 0u8

source§

const ONE: u8 = 1u8

source§

const SIGNED: bool = false

source§

fn lt1(self, other: Self) -> bool

source§

fn avg(self, other: Self) -> Self

source§

fn abs(self) -> Self

source§

fn neg(self) -> Self

source§

fn steps(self, from: (Self, Self), to: (Self, Self)) -> Self

source§

fn lowest_frac() -> (Self, Self)

source§

fn highest_frac() -> (Self, Self)

source§

fn zero_frac() -> (Self, Self)

source§

impl SbInt for isize

source§

const ZERO: isize = 0isize

source§

const ONE: isize = 1isize

source§

const SIGNED: bool = true

source§

fn lt1(self, other: Self) -> bool

source§

fn avg(self, other: Self) -> Self

source§

fn abs(self) -> Self

source§

fn neg(self) -> Self

source§

fn steps(self, from: (Self, Self), to: (Self, Self)) -> Self

source§

fn lowest_frac() -> (Self, Self)

source§

fn highest_frac() -> (Self, Self)

source§

fn zero_frac() -> (Self, Self)

source§

impl SbInt for u128

source§

const ZERO: u128 = 0u128

source§

const ONE: u128 = 1u128

source§

const SIGNED: bool = false

source§

fn lt1(self, other: Self) -> bool

source§

fn avg(self, other: Self) -> Self

source§

fn abs(self) -> Self

source§

fn neg(self) -> Self

source§

fn steps(self, from: (Self, Self), to: (Self, Self)) -> Self

source§

fn lowest_frac() -> (Self, Self)

source§

fn highest_frac() -> (Self, Self)

source§

fn zero_frac() -> (Self, Self)

source§

impl SbInt for usize

source§

const ZERO: usize = 0usize

source§

const ONE: usize = 1usize

source§

const SIGNED: bool = false

source§

fn lt1(self, other: Self) -> bool

source§

fn avg(self, other: Self) -> Self

source§

fn abs(self) -> Self

source§

fn neg(self) -> Self

source§

fn steps(self, from: (Self, Self), to: (Self, Self)) -> Self

source§

fn lowest_frac() -> (Self, Self)

source§

fn highest_frac() -> (Self, Self)

source§

fn zero_frac() -> (Self, Self)

source§

impl SbInt for i64

source§

const ZERO: i64 = 0i64

source§

const ONE: i64 = 1i64

source§

const SIGNED: bool = true

source§

fn lt1(self, other: Self) -> bool

source§

fn avg(self, other: Self) -> Self

source§

fn abs(self) -> Self

source§

fn neg(self) -> Self

source§

fn steps(self, from: (Self, Self), to: (Self, Self)) -> Self

source§

fn lowest_frac() -> (Self, Self)

source§

fn highest_frac() -> (Self, Self)

source§

fn zero_frac() -> (Self, Self)

source§

impl SbInt for i32

source§

const ZERO: i32 = 0i32

source§

const ONE: i32 = 1i32

source§

const SIGNED: bool = true

source§

fn lt1(self, other: Self) -> bool

source§

fn avg(self, other: Self) -> Self

source§

fn abs(self) -> Self

source§

fn neg(self) -> Self

source§

fn steps(self, from: (Self, Self), to: (Self, Self)) -> Self

source§

fn lowest_frac() -> (Self, Self)

source§

fn highest_frac() -> (Self, Self)

source§

fn zero_frac() -> (Self, Self)

source§

impl SbInt for u32

source§

const ZERO: u32 = 0u32

source§

const ONE: u32 = 1u32

source§

const SIGNED: bool = false

source§

fn lt1(self, other: Self) -> bool

source§

fn avg(self, other: Self) -> Self

source§

fn abs(self) -> Self

source§

fn neg(self) -> Self

source§

fn steps(self, from: (Self, Self), to: (Self, Self)) -> Self

source§

fn lowest_frac() -> (Self, Self)

source§

fn highest_frac() -> (Self, Self)

source§

fn zero_frac() -> (Self, Self)

Implementors§