Trait UNum

Source
pub trait UNum:
    Sized
    + Copy
    + Debug
    + Display
    + Add<Output = Self>
    + AddAssign
    + Sub<Output = Self>
    + SubAssign
    + Mul<Output = Self>
    + MulAssign
    + Div<Output = Self>
    + DivAssign
    + PartialEq
    + PartialOrd {
    const ZERO: Self;
    const ONE: Self;
}

Required Associated Constants§

Source

const ZERO: Self

Source

const ONE: 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.

Implementations on Foreign Types§

Source§

impl UNum for f32

Source§

const ZERO: f32 = 0f32

Source§

const ONE: f32 = 1f32

Source§

impl UNum for f64

Source§

const ZERO: f64 = 0f64

Source§

const ONE: f64 = 1f64

Source§

impl UNum for i8

Source§

const ZERO: i8 = 0i8

Source§

const ONE: i8 = 1i8

Source§

impl UNum for i16

Source§

const ZERO: i16 = 0i16

Source§

const ONE: i16 = 1i16

Source§

impl UNum for i32

Source§

const ZERO: i32 = 0i32

Source§

const ONE: i32 = 1i32

Source§

impl UNum for i64

Source§

const ZERO: i64 = 0i64

Source§

const ONE: i64 = 1i64

Source§

impl UNum for isize

Source§

const ZERO: isize = 0isize

Source§

const ONE: isize = 1isize

Source§

impl UNum for u8

Source§

const ZERO: u8 = 0u8

Source§

const ONE: u8 = 1u8

Source§

impl UNum for u16

Source§

const ZERO: u16 = 0u16

Source§

const ONE: u16 = 1u16

Source§

impl UNum for u32

Source§

const ZERO: u32 = 0u32

Source§

const ONE: u32 = 1u32

Source§

impl UNum for u64

Source§

const ZERO: u64 = 0u64

Source§

const ONE: u64 = 1u64

Source§

impl UNum for usize

Source§

const ZERO: usize = 0usize

Source§

const ONE: usize = 1usize

Implementors§

Source§

impl<T> UNum for RealImpl<T>
where T: Float,