pub trait Primitive<U>: Sized + Copy + Send + Sync + One + Sum + Default + Sub<Self, Output = Self> + Add<Self, Output = Self> + AddAssign + MulAssign + SubAssign + DivAssign + PartialOrd + Mul<Self, Output = Self> + Div<Self, Output = Self> + MaxMin {
    // Required methods
    fn convert(self) -> U;
    fn reverse(other: U) -> Self;
}

Required Methods§

source

fn convert(self) -> U

source

fn reverse(other: U) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Primitive<bool> for f32

source§

fn convert(self) -> bool

source§

fn reverse(other: bool) -> Self

source§

impl Primitive<bool> for f64

source§

fn convert(self) -> bool

source§

fn reverse(other: bool) -> Self

source§

impl Primitive<bool> for u8

source§

fn convert(self) -> bool

source§

fn reverse(other: bool) -> Self

source§

impl Primitive<bool> for u16

source§

fn convert(self) -> bool

source§

fn reverse(other: bool) -> Self

source§

impl Primitive<bool> for u32

source§

fn convert(self) -> bool

source§

fn reverse(other: bool) -> Self

source§

impl Primitive<bool> for u64

source§

fn convert(self) -> bool

source§

fn reverse(other: bool) -> Self

source§

impl Primitive<bool> for u128

source§

fn convert(self) -> bool

source§

fn reverse(other: bool) -> Self

source§

impl Primitive<bool> for usize

source§

fn convert(self) -> bool

source§

fn reverse(other: bool) -> Self

source§

impl Primitive<f32> for f32

source§

fn convert(self) -> f32

source§

fn reverse(other: f32) -> Self

source§

impl Primitive<f32> for f64

source§

fn convert(self) -> f32

source§

fn reverse(other: f32) -> Self

source§

impl Primitive<f32> for u8

source§

fn convert(self) -> f32

source§

fn reverse(other: f32) -> Self

source§

impl Primitive<f32> for u16

source§

fn convert(self) -> f32

source§

fn reverse(other: f32) -> Self

source§

impl Primitive<f32> for u32

source§

fn convert(self) -> f32

source§

fn reverse(other: f32) -> Self

source§

impl Primitive<f32> for u64

source§

fn convert(self) -> f32

source§

fn reverse(other: f32) -> Self

source§

impl Primitive<f32> for u128

source§

fn convert(self) -> f32

source§

fn reverse(other: f32) -> Self

source§

impl Primitive<f32> for usize

source§

fn convert(self) -> f32

source§

fn reverse(other: f32) -> Self

source§

impl Primitive<f64> for f32

source§

fn convert(self) -> f64

source§

fn reverse(other: f64) -> Self

source§

impl Primitive<f64> for f64

source§

fn convert(self) -> f64

source§

fn reverse(other: f64) -> Self

source§

impl Primitive<f64> for u8

source§

fn convert(self) -> f64

source§

fn reverse(other: f64) -> Self

source§

impl Primitive<f64> for u16

source§

fn convert(self) -> f64

source§

fn reverse(other: f64) -> Self

source§

impl Primitive<f64> for u32

source§

fn convert(self) -> f64

source§

fn reverse(other: f64) -> Self

source§

impl Primitive<f64> for u64

source§

fn convert(self) -> f64

source§

fn reverse(other: f64) -> Self

source§

impl Primitive<f64> for u128

source§

fn convert(self) -> f64

source§

fn reverse(other: f64) -> Self

source§

impl Primitive<f64> for usize

source§

fn convert(self) -> f64

source§

fn reverse(other: f64) -> Self

source§

impl Primitive<u8> for f32

source§

fn convert(self) -> u8

source§

fn reverse(other: u8) -> Self

source§

impl Primitive<u8> for f64

source§

fn convert(self) -> u8

source§

fn reverse(other: u8) -> Self

source§

impl Primitive<u8> for u16

source§

fn convert(self) -> u8

source§

fn reverse(other: u8) -> Self

source§

impl Primitive<u8> for u32

source§

fn convert(self) -> u8

source§

fn reverse(other: u8) -> Self

source§

impl Primitive<u8> for u64

source§

fn convert(self) -> u8

source§

fn reverse(other: u8) -> Self

source§

impl Primitive<u8> for u128

source§

fn convert(self) -> u8

source§

fn reverse(other: u8) -> Self

source§

impl Primitive<u8> for usize

source§

fn convert(self) -> u8

source§

fn reverse(other: u8) -> Self

source§

impl Primitive<u16> for f32

source§

fn convert(self) -> u16

source§

fn reverse(other: u16) -> Self

source§

impl Primitive<u16> for f64

source§

fn convert(self) -> u16

source§

fn reverse(other: u16) -> Self

source§

impl Primitive<u16> for u8

source§

fn convert(self) -> u16

source§

fn reverse(other: u16) -> Self

source§

impl Primitive<u16> for u32

source§

fn convert(self) -> u16

source§

fn reverse(other: u16) -> Self

source§

impl Primitive<u16> for u64

source§

fn convert(self) -> u16

source§

fn reverse(other: u16) -> Self

source§

impl Primitive<u16> for u128

source§

fn convert(self) -> u16

source§

fn reverse(other: u16) -> Self

source§

impl Primitive<u16> for usize

source§

fn convert(self) -> u16

source§

fn reverse(other: u16) -> Self

source§

impl Primitive<u32> for f32

source§

fn convert(self) -> u32

source§

fn reverse(other: u32) -> Self

source§

impl Primitive<u32> for f64

source§

fn convert(self) -> u32

source§

fn reverse(other: u32) -> Self

source§

impl Primitive<u32> for u8

source§

fn convert(self) -> u32

source§

fn reverse(other: u32) -> Self

source§

impl Primitive<u32> for u16

source§

fn convert(self) -> u32

source§

fn reverse(other: u32) -> Self

source§

impl Primitive<u32> for u64

source§

fn convert(self) -> u32

source§

fn reverse(other: u32) -> Self

source§

impl Primitive<u32> for u128

source§

fn convert(self) -> u32

source§

fn reverse(other: u32) -> Self

source§

impl Primitive<u32> for usize

source§

fn convert(self) -> u32

source§

fn reverse(other: u32) -> Self

source§

impl Primitive<u64> for f32

source§

fn convert(self) -> u64

source§

fn reverse(other: u64) -> Self

source§

impl Primitive<u64> for f64

source§

fn convert(self) -> u64

source§

fn reverse(other: u64) -> Self

source§

impl Primitive<u64> for u8

source§

fn convert(self) -> u64

source§

fn reverse(other: u64) -> Self

source§

impl Primitive<u64> for u16

source§

fn convert(self) -> u64

source§

fn reverse(other: u64) -> Self

source§

impl Primitive<u64> for u32

source§

fn convert(self) -> u64

source§

fn reverse(other: u64) -> Self

source§

impl Primitive<u64> for u128

source§

fn convert(self) -> u64

source§

fn reverse(other: u64) -> Self

source§

impl Primitive<u64> for usize

source§

fn convert(self) -> u64

source§

fn reverse(other: u64) -> Self

source§

impl Primitive<u128> for f32

source§

fn convert(self) -> u128

source§

fn reverse(other: u128) -> Self

source§

impl Primitive<u128> for f64

source§

fn convert(self) -> u128

source§

fn reverse(other: u128) -> Self

source§

impl Primitive<u128> for u8

source§

fn convert(self) -> u128

source§

fn reverse(other: u128) -> Self

source§

impl Primitive<u128> for u16

source§

fn convert(self) -> u128

source§

fn reverse(other: u128) -> Self

source§

impl Primitive<u128> for u32

source§

fn convert(self) -> u128

source§

fn reverse(other: u128) -> Self

source§

impl Primitive<u128> for u64

source§

fn convert(self) -> u128

source§

fn reverse(other: u128) -> Self

source§

impl Primitive<u128> for usize

source§

fn convert(self) -> u128

source§

fn reverse(other: u128) -> Self

source§

impl Primitive<usize> for f32

source§

fn convert(self) -> usize

source§

fn reverse(other: usize) -> Self

source§

impl Primitive<usize> for f64

source§

fn convert(self) -> usize

source§

fn reverse(other: usize) -> Self

source§

impl Primitive<usize> for u8

source§

fn convert(self) -> usize

source§

fn reverse(other: usize) -> Self

source§

impl Primitive<usize> for u16

source§

fn convert(self) -> usize

source§

fn reverse(other: usize) -> Self

source§

impl Primitive<usize> for u32

source§

fn convert(self) -> usize

source§

fn reverse(other: usize) -> Self

source§

impl Primitive<usize> for u64

source§

fn convert(self) -> usize

source§

fn reverse(other: usize) -> Self

source§

impl Primitive<usize> for u128

source§

fn convert(self) -> usize

source§

fn reverse(other: usize) -> Self

source§

impl Primitive<usize> for usize

source§

fn convert(self) -> usize

source§

fn reverse(other: usize) -> Self

Implementors§