pub(crate) trait CastInto<T: Copy>: Copy {
    // Required method
    fn cast(self) -> T;
}
Expand description

Trait to express (possibly lossy) casting of integers

Required Methods§

source

fn cast(self) -> T

Implementations on Foreign Types§

source§

impl CastInto<usize> for u128

source§

fn cast(self) -> usize

source§

impl CastInto<i8> for i128

source§

fn cast(self) -> i8

source§

impl CastInto<i8> for u8

source§

fn cast(self) -> i8

source§

impl CastInto<u8> for isize

source§

fn cast(self) -> u8

source§

impl CastInto<u32> for u8

source§

fn cast(self) -> u32

source§

impl CastInto<u8> for u8

source§

fn cast(self) -> u8

source§

impl CastInto<u32> for i32

source§

fn cast(self) -> u32

source§

impl CastInto<i8> for i16

source§

fn cast(self) -> i8

source§

impl CastInto<usize> for isize

source§

fn cast(self) -> usize

source§

impl CastInto<u16> for u16

source§

fn cast(self) -> u16

source§

impl CastInto<u16> for i8

source§

fn cast(self) -> u16

source§

impl CastInto<i32> for u8

source§

fn cast(self) -> i32

source§

impl CastInto<i8> for u128

source§

fn cast(self) -> i8

source§

impl CastInto<i8> for isize

source§

fn cast(self) -> i8

source§

impl CastInto<i64> for usize

source§

fn cast(self) -> i64

source§

impl CastInto<i128> for i16

source§

fn cast(self) -> i128

source§

impl CastInto<u128> for i8

source§

fn cast(self) -> u128

source§

impl CastInto<u16> for u8

source§

fn cast(self) -> u16

source§

impl CastInto<u32> for u128

source§

fn cast(self) -> u32

source§

impl CastInto<i128> for i8

source§

fn cast(self) -> i128

source§

impl CastInto<usize> for usize

source§

fn cast(self) -> usize

source§

impl CastInto<i128> for u32

source§

fn cast(self) -> i128

source§

impl CastInto<u128> for i32

source§

fn cast(self) -> u128

source§

impl CastInto<u16> for isize

source§

fn cast(self) -> u16

source§

impl CastInto<u128> for i128

source§

fn cast(self) -> u128

source§

impl CastInto<i128> for usize

source§

fn cast(self) -> i128

source§

impl CastInto<u8> for i32

source§

fn cast(self) -> u8

source§

impl CastInto<i64> for u8

source§

fn cast(self) -> i64

source§

impl CastInto<u64> for u32

source§

fn cast(self) -> u64

source§

impl CastInto<u128> for u128

source§

fn cast(self) -> u128

source§

impl CastInto<u128> for isize

source§

fn cast(self) -> u128

source§

impl CastInto<i128> for u16

source§

fn cast(self) -> i128

source§

impl CastInto<i32> for u128

source§

fn cast(self) -> i32

source§

impl CastInto<i8> for u16

source§

fn cast(self) -> i8

source§

impl CastInto<i16> for i8

source§

fn cast(self) -> i16

source§

impl CastInto<usize> for i128

source§

fn cast(self) -> usize

source§

impl CastInto<isize> for i16

source§

fn cast(self) -> isize

source§

impl CastInto<i128> for i128

source§

fn cast(self) -> i128

source§

impl CastInto<i32> for i32

source§

fn cast(self) -> i32

source§

impl CastInto<i64> for u64

source§

fn cast(self) -> i64

source§

impl CastInto<i16> for i64

source§

fn cast(self) -> i16

source§

impl CastInto<i8> for i64

source§

fn cast(self) -> i8

source§

impl CastInto<i64> for i8

source§

fn cast(self) -> i64

source§

impl CastInto<i64> for u128

source§

fn cast(self) -> i64

source§

impl CastInto<u32> for usize

source§

fn cast(self) -> u32

source§

impl CastInto<i16> for u128

source§

fn cast(self) -> i16

source§

impl CastInto<usize> for i8

source§

fn cast(self) -> usize

source§

impl CastInto<isize> for i64

source§

fn cast(self) -> isize

source§

impl CastInto<u32> for u32

source§

fn cast(self) -> u32

source§

impl CastInto<u64> for i16

source§

fn cast(self) -> u64

source§

impl CastInto<i64> for i64

source§

fn cast(self) -> i64

source§

impl CastInto<usize> for u64

source§

fn cast(self) -> usize

source§

impl CastInto<u64> for i128

source§

fn cast(self) -> u64

source§

impl CastInto<i64> for i32

source§

fn cast(self) -> i64

source§

impl CastInto<u8> for u64

source§

fn cast(self) -> u8

source§

impl CastInto<i16> for i128

source§

fn cast(self) -> i16

source§

impl CastInto<u64> for isize

source§

fn cast(self) -> u64

source§

impl CastInto<usize> for u32

source§

fn cast(self) -> usize

source§

impl CastInto<u64> for u16

source§

fn cast(self) -> u64

source§

impl CastInto<isize> for u32

source§

fn cast(self) -> isize

source§

impl CastInto<i16> for usize

source§

fn cast(self) -> i16

source§

impl CastInto<u128> for i16

source§

fn cast(self) -> u128

source§

impl CastInto<u8> for i16

source§

fn cast(self) -> u8

source§

impl CastInto<u8> for u128

source§

fn cast(self) -> u8

source§

impl CastInto<isize> for isize

source§

fn cast(self) -> isize

source§

impl CastInto<i8> for i8

source§

fn cast(self) -> i8

source§

impl CastInto<u16> for usize

source§

fn cast(self) -> u16

source§

impl CastInto<u128> for u8

source§

fn cast(self) -> u128

source§

impl CastInto<u16> for i128

source§

fn cast(self) -> u16

source§

impl CastInto<usize> for i16

source§

fn cast(self) -> usize

source§

impl CastInto<isize> for u64

source§

fn cast(self) -> isize

source§

impl CastInto<usize> for i32

source§

fn cast(self) -> usize

source§

impl CastInto<isize> for u128

source§

fn cast(self) -> isize

source§

impl CastInto<isize> for i128

source§

fn cast(self) -> isize

source§

impl CastInto<i16> for u8

source§

fn cast(self) -> i16

source§

impl CastInto<u8> for u32

source§

fn cast(self) -> u8

source§

impl CastInto<i32> for u64

source§

fn cast(self) -> i32

source§

impl CastInto<u32> for i64

source§

fn cast(self) -> u32

source§

impl CastInto<i64> for u32

source§

fn cast(self) -> i64

source§

impl CastInto<u8> for usize

source§

fn cast(self) -> u8

source§

impl CastInto<i64> for isize

source§

fn cast(self) -> i64

source§

impl CastInto<u16> for i64

source§

fn cast(self) -> u16

source§

impl CastInto<i128> for u128

source§

fn cast(self) -> i128

source§

impl CastInto<i32> for i64

source§

fn cast(self) -> i32

source§

impl CastInto<u16> for u32

source§

fn cast(self) -> u16

source§

impl CastInto<i16> for u64

source§

fn cast(self) -> i16

source§

impl CastInto<isize> for u16

source§

fn cast(self) -> isize

source§

impl CastInto<u16> for u64

source§

fn cast(self) -> u16

source§

impl CastInto<i32> for isize

source§

fn cast(self) -> i32

source§

impl CastInto<i32> for i16

source§

fn cast(self) -> i32

source§

impl CastInto<u32> for i128

source§

fn cast(self) -> u32

source§

impl CastInto<u128> for u64

source§

fn cast(self) -> u128

source§

impl CastInto<u8> for i64

source§

fn cast(self) -> u8

source§

impl CastInto<u8> for i8

source§

fn cast(self) -> u8

source§

impl CastInto<i32> for i8

source§

fn cast(self) -> i32

source§

impl CastInto<u16> for u128

source§

fn cast(self) -> u16

source§

impl CastInto<u64> for i32

source§

fn cast(self) -> u64

source§

impl CastInto<u16> for i32

source§

fn cast(self) -> u16

source§

impl CastInto<u16> for i16

source§

fn cast(self) -> u16

source§

impl CastInto<i128> for i64

source§

fn cast(self) -> i128

source§

impl CastInto<isize> for usize

source§

fn cast(self) -> isize

source§

impl CastInto<u128> for i64

source§

fn cast(self) -> u128

source§

impl CastInto<i8> for u32

source§

fn cast(self) -> i8

source§

impl CastInto<u64> for u64

source§

fn cast(self) -> u64

source§

impl CastInto<i32> for usize

source§

fn cast(self) -> i32

source§

impl CastInto<u32> for u64

source§

fn cast(self) -> u32

source§

impl CastInto<i64> for i16

source§

fn cast(self) -> i64

source§

impl CastInto<u32> for isize

source§

fn cast(self) -> u32

source§

impl CastInto<i8> for u64

source§

fn cast(self) -> i8

source§

impl CastInto<i64> for u16

source§

fn cast(self) -> i64

source§

impl CastInto<usize> for u8

source§

fn cast(self) -> usize

source§

impl CastInto<isize> for i32

source§

fn cast(self) -> isize

source§

impl CastInto<u128> for usize

source§

fn cast(self) -> u128

source§

impl CastInto<i32> for i128

source§

fn cast(self) -> i32

source§

impl CastInto<i128> for isize

source§

fn cast(self) -> i128

source§

impl CastInto<i16> for u32

source§

fn cast(self) -> i16

source§

impl CastInto<i16> for i16

source§

fn cast(self) -> i16

source§

impl CastInto<i16> for i32

source§

fn cast(self) -> i16

source§

impl CastInto<u32> for i16

source§

fn cast(self) -> u32

source§

impl CastInto<i128> for u8

source§

fn cast(self) -> i128

source§

impl CastInto<u32> for u16

source§

fn cast(self) -> u32

source§

impl CastInto<u64> for i8

source§

fn cast(self) -> u64

source§

impl CastInto<u128> for u32

source§

fn cast(self) -> u128

source§

impl CastInto<u64> for usize

source§

fn cast(self) -> u64

source§

impl CastInto<u64> for u8

source§

fn cast(self) -> u64

source§

impl CastInto<isize> for i8

source§

fn cast(self) -> isize

source§

impl CastInto<i8> for usize

source§

fn cast(self) -> i8

source§

impl CastInto<i32> for u16

source§

fn cast(self) -> i32

source§

impl CastInto<usize> for i64

source§

fn cast(self) -> usize

source§

impl CastInto<isize> for u8

source§

fn cast(self) -> isize

source§

impl CastInto<i8> for i32

source§

fn cast(self) -> i8

source§

impl CastInto<i16> for isize

source§

fn cast(self) -> i16

source§

impl CastInto<u64> for i64

source§

fn cast(self) -> u64

source§

impl CastInto<u128> for u16

source§

fn cast(self) -> u128

source§

impl CastInto<u8> for u16

source§

fn cast(self) -> u8

source§

impl CastInto<u32> for i8

source§

fn cast(self) -> u32

source§

impl CastInto<u8> for i128

source§

fn cast(self) -> u8

source§

impl CastInto<i16> for u16

source§

fn cast(self) -> i16

source§

impl CastInto<i32> for u32

source§

fn cast(self) -> i32

source§

impl CastInto<usize> for u16

source§

fn cast(self) -> usize

source§

impl CastInto<i64> for i128

source§

fn cast(self) -> i64

source§

impl CastInto<u64> for u128

source§

fn cast(self) -> u64

source§

impl CastInto<i128> for i32

source§

fn cast(self) -> i128

source§

impl CastInto<i128> for u64

source§

fn cast(self) -> i128

Implementors§