Trait az::Cast

source ·
pub trait Cast<Dst> {
    // Required method
    fn cast(self) -> Dst;
}
Expand description

Used to cast values.

It is normally easier to use the Az trait instead of this trait.

§Panics

When debug assertions are enabled, this trait’s method panics if the value does not fit in the destination. When debug assertions are not enabled (usual in release mode), the wrapped value can be returned, but it is not considered a breaking change if in the future it panics; if wrapping is required use WrappingCast instead.

This trait’s method also panics with no debug assertions if the value does not fit and cannot be wrapped, for example when trying to cast floating-point ∞ into an integer type.

§Examples

use az::Cast;
let a: u32 = 5i32.cast();
assert_eq!(a, 5);
assert_eq!(Cast::<u8>::cast(17.1f32), 17);

Required Methods§

source

fn cast(self) -> Dst

Casts the value.

Implementations on Foreign Types§

source§

impl Cast<Wrapping<i8>> for bool

source§

fn cast(self) -> Wrapping<i8>

source§

impl Cast<Wrapping<i8>> for f32

source§

fn cast(self) -> Wrapping<i8>

source§

impl Cast<Wrapping<i8>> for f64

source§

fn cast(self) -> Wrapping<i8>

source§

impl Cast<Wrapping<i8>> for i8

source§

fn cast(self) -> Wrapping<i8>

source§

impl Cast<Wrapping<i8>> for i16

source§

fn cast(self) -> Wrapping<i8>

source§

impl Cast<Wrapping<i8>> for i32

source§

fn cast(self) -> Wrapping<i8>

source§

impl Cast<Wrapping<i8>> for i64

source§

fn cast(self) -> Wrapping<i8>

source§

impl Cast<Wrapping<i8>> for i128

source§

fn cast(self) -> Wrapping<i8>

source§

impl Cast<Wrapping<i8>> for isize

source§

fn cast(self) -> Wrapping<i8>

source§

impl Cast<Wrapping<i8>> for u8

source§

fn cast(self) -> Wrapping<i8>

source§

impl Cast<Wrapping<i8>> for u16

source§

fn cast(self) -> Wrapping<i8>

source§

impl Cast<Wrapping<i8>> for u32

source§

fn cast(self) -> Wrapping<i8>

source§

impl Cast<Wrapping<i8>> for u64

source§

fn cast(self) -> Wrapping<i8>

source§

impl Cast<Wrapping<i8>> for u128

source§

fn cast(self) -> Wrapping<i8>

source§

impl Cast<Wrapping<i8>> for usize

source§

fn cast(self) -> Wrapping<i8>

source§

impl Cast<Wrapping<i16>> for bool

source§

fn cast(self) -> Wrapping<i16>

source§

impl Cast<Wrapping<i16>> for f32

source§

fn cast(self) -> Wrapping<i16>

source§

impl Cast<Wrapping<i16>> for f64

source§

fn cast(self) -> Wrapping<i16>

source§

impl Cast<Wrapping<i16>> for i8

source§

fn cast(self) -> Wrapping<i16>

source§

impl Cast<Wrapping<i16>> for i16

source§

fn cast(self) -> Wrapping<i16>

source§

impl Cast<Wrapping<i16>> for i32

source§

fn cast(self) -> Wrapping<i16>

source§

impl Cast<Wrapping<i16>> for i64

source§

fn cast(self) -> Wrapping<i16>

source§

impl Cast<Wrapping<i16>> for i128

source§

fn cast(self) -> Wrapping<i16>

source§

impl Cast<Wrapping<i16>> for isize

source§

fn cast(self) -> Wrapping<i16>

source§

impl Cast<Wrapping<i16>> for u8

source§

fn cast(self) -> Wrapping<i16>

source§

impl Cast<Wrapping<i16>> for u16

source§

fn cast(self) -> Wrapping<i16>

source§

impl Cast<Wrapping<i16>> for u32

source§

fn cast(self) -> Wrapping<i16>

source§

impl Cast<Wrapping<i16>> for u64

source§

fn cast(self) -> Wrapping<i16>

source§

impl Cast<Wrapping<i16>> for u128

source§

fn cast(self) -> Wrapping<i16>

source§

impl Cast<Wrapping<i16>> for usize

source§

fn cast(self) -> Wrapping<i16>

source§

impl Cast<Wrapping<i32>> for bool

source§

fn cast(self) -> Wrapping<i32>

source§

impl Cast<Wrapping<i32>> for f32

source§

fn cast(self) -> Wrapping<i32>

source§

impl Cast<Wrapping<i32>> for f64

source§

fn cast(self) -> Wrapping<i32>

source§

impl Cast<Wrapping<i32>> for i8

source§

fn cast(self) -> Wrapping<i32>

source§

impl Cast<Wrapping<i32>> for i16

source§

fn cast(self) -> Wrapping<i32>

source§

impl Cast<Wrapping<i32>> for i32

source§

fn cast(self) -> Wrapping<i32>

source§

impl Cast<Wrapping<i32>> for i64

source§

fn cast(self) -> Wrapping<i32>

source§

impl Cast<Wrapping<i32>> for i128

source§

fn cast(self) -> Wrapping<i32>

source§

impl Cast<Wrapping<i32>> for isize

source§

fn cast(self) -> Wrapping<i32>

source§

impl Cast<Wrapping<i32>> for u8

source§

fn cast(self) -> Wrapping<i32>

source§

impl Cast<Wrapping<i32>> for u16

source§

fn cast(self) -> Wrapping<i32>

source§

impl Cast<Wrapping<i32>> for u32

source§

fn cast(self) -> Wrapping<i32>

source§

impl Cast<Wrapping<i32>> for u64

source§

fn cast(self) -> Wrapping<i32>

source§

impl Cast<Wrapping<i32>> for u128

source§

fn cast(self) -> Wrapping<i32>

source§

impl Cast<Wrapping<i32>> for usize

source§

fn cast(self) -> Wrapping<i32>

source§

impl Cast<Wrapping<i64>> for bool

source§

fn cast(self) -> Wrapping<i64>

source§

impl Cast<Wrapping<i64>> for f32

source§

fn cast(self) -> Wrapping<i64>

source§

impl Cast<Wrapping<i64>> for f64

source§

fn cast(self) -> Wrapping<i64>

source§

impl Cast<Wrapping<i64>> for i8

source§

fn cast(self) -> Wrapping<i64>

source§

impl Cast<Wrapping<i64>> for i16

source§

fn cast(self) -> Wrapping<i64>

source§

impl Cast<Wrapping<i64>> for i32

source§

fn cast(self) -> Wrapping<i64>

source§

impl Cast<Wrapping<i64>> for i64

source§

fn cast(self) -> Wrapping<i64>

source§

impl Cast<Wrapping<i64>> for i128

source§

fn cast(self) -> Wrapping<i64>

source§

impl Cast<Wrapping<i64>> for isize

source§

fn cast(self) -> Wrapping<i64>

source§

impl Cast<Wrapping<i64>> for u8

source§

fn cast(self) -> Wrapping<i64>

source§

impl Cast<Wrapping<i64>> for u16

source§

fn cast(self) -> Wrapping<i64>

source§

impl Cast<Wrapping<i64>> for u32

source§

fn cast(self) -> Wrapping<i64>

source§

impl Cast<Wrapping<i64>> for u64

source§

fn cast(self) -> Wrapping<i64>

source§

impl Cast<Wrapping<i64>> for u128

source§

fn cast(self) -> Wrapping<i64>

source§

impl Cast<Wrapping<i64>> for usize

source§

fn cast(self) -> Wrapping<i64>

source§

impl Cast<Wrapping<i128>> for bool

source§

fn cast(self) -> Wrapping<i128>

source§

impl Cast<Wrapping<i128>> for f32

source§

fn cast(self) -> Wrapping<i128>

source§

impl Cast<Wrapping<i128>> for f64

source§

fn cast(self) -> Wrapping<i128>

source§

impl Cast<Wrapping<i128>> for i8

source§

fn cast(self) -> Wrapping<i128>

source§

impl Cast<Wrapping<i128>> for i16

source§

fn cast(self) -> Wrapping<i128>

source§

impl Cast<Wrapping<i128>> for i32

source§

fn cast(self) -> Wrapping<i128>

source§

impl Cast<Wrapping<i128>> for i64

source§

fn cast(self) -> Wrapping<i128>

source§

impl Cast<Wrapping<i128>> for i128

source§

fn cast(self) -> Wrapping<i128>

source§

impl Cast<Wrapping<i128>> for isize

source§

fn cast(self) -> Wrapping<i128>

source§

impl Cast<Wrapping<i128>> for u8

source§

fn cast(self) -> Wrapping<i128>

source§

impl Cast<Wrapping<i128>> for u16

source§

fn cast(self) -> Wrapping<i128>

source§

impl Cast<Wrapping<i128>> for u32

source§

fn cast(self) -> Wrapping<i128>

source§

impl Cast<Wrapping<i128>> for u64

source§

fn cast(self) -> Wrapping<i128>

source§

impl Cast<Wrapping<i128>> for u128

source§

fn cast(self) -> Wrapping<i128>

source§

impl Cast<Wrapping<i128>> for usize

source§

fn cast(self) -> Wrapping<i128>

source§

impl Cast<Wrapping<isize>> for bool

source§

fn cast(self) -> Wrapping<isize>

source§

impl Cast<Wrapping<isize>> for f32

source§

fn cast(self) -> Wrapping<isize>

source§

impl Cast<Wrapping<isize>> for f64

source§

fn cast(self) -> Wrapping<isize>

source§

impl Cast<Wrapping<isize>> for i8

source§

fn cast(self) -> Wrapping<isize>

source§

impl Cast<Wrapping<isize>> for i16

source§

fn cast(self) -> Wrapping<isize>

source§

impl Cast<Wrapping<isize>> for i32

source§

fn cast(self) -> Wrapping<isize>

source§

impl Cast<Wrapping<isize>> for i64

source§

fn cast(self) -> Wrapping<isize>

source§

impl Cast<Wrapping<isize>> for i128

source§

fn cast(self) -> Wrapping<isize>

source§

impl Cast<Wrapping<isize>> for isize

source§

fn cast(self) -> Wrapping<isize>

source§

impl Cast<Wrapping<isize>> for u8

source§

fn cast(self) -> Wrapping<isize>

source§

impl Cast<Wrapping<isize>> for u16

source§

fn cast(self) -> Wrapping<isize>

source§

impl Cast<Wrapping<isize>> for u32

source§

fn cast(self) -> Wrapping<isize>

source§

impl Cast<Wrapping<isize>> for u64

source§

fn cast(self) -> Wrapping<isize>

source§

impl Cast<Wrapping<isize>> for u128

source§

fn cast(self) -> Wrapping<isize>

source§

impl Cast<Wrapping<isize>> for usize

source§

fn cast(self) -> Wrapping<isize>

source§

impl Cast<Wrapping<u8>> for bool

source§

fn cast(self) -> Wrapping<u8>

source§

impl Cast<Wrapping<u8>> for f32

source§

fn cast(self) -> Wrapping<u8>

source§

impl Cast<Wrapping<u8>> for f64

source§

fn cast(self) -> Wrapping<u8>

source§

impl Cast<Wrapping<u8>> for i8

source§

fn cast(self) -> Wrapping<u8>

source§

impl Cast<Wrapping<u8>> for i16

source§

fn cast(self) -> Wrapping<u8>

source§

impl Cast<Wrapping<u8>> for i32

source§

fn cast(self) -> Wrapping<u8>

source§

impl Cast<Wrapping<u8>> for i64

source§

fn cast(self) -> Wrapping<u8>

source§

impl Cast<Wrapping<u8>> for i128

source§

fn cast(self) -> Wrapping<u8>

source§

impl Cast<Wrapping<u8>> for isize

source§

fn cast(self) -> Wrapping<u8>

source§

impl Cast<Wrapping<u8>> for u8

source§

fn cast(self) -> Wrapping<u8>

source§

impl Cast<Wrapping<u8>> for u16

source§

fn cast(self) -> Wrapping<u8>

source§

impl Cast<Wrapping<u8>> for u32

source§

fn cast(self) -> Wrapping<u8>

source§

impl Cast<Wrapping<u8>> for u64

source§

fn cast(self) -> Wrapping<u8>

source§

impl Cast<Wrapping<u8>> for u128

source§

fn cast(self) -> Wrapping<u8>

source§

impl Cast<Wrapping<u8>> for usize

source§

fn cast(self) -> Wrapping<u8>

source§

impl Cast<Wrapping<u16>> for bool

source§

fn cast(self) -> Wrapping<u16>

source§

impl Cast<Wrapping<u16>> for f32

source§

fn cast(self) -> Wrapping<u16>

source§

impl Cast<Wrapping<u16>> for f64

source§

fn cast(self) -> Wrapping<u16>

source§

impl Cast<Wrapping<u16>> for i8

source§

fn cast(self) -> Wrapping<u16>

source§

impl Cast<Wrapping<u16>> for i16

source§

fn cast(self) -> Wrapping<u16>

source§

impl Cast<Wrapping<u16>> for i32

source§

fn cast(self) -> Wrapping<u16>

source§

impl Cast<Wrapping<u16>> for i64

source§

fn cast(self) -> Wrapping<u16>

source§

impl Cast<Wrapping<u16>> for i128

source§

fn cast(self) -> Wrapping<u16>

source§

impl Cast<Wrapping<u16>> for isize

source§

fn cast(self) -> Wrapping<u16>

source§

impl Cast<Wrapping<u16>> for u8

source§

fn cast(self) -> Wrapping<u16>

source§

impl Cast<Wrapping<u16>> for u16

source§

fn cast(self) -> Wrapping<u16>

source§

impl Cast<Wrapping<u16>> for u32

source§

fn cast(self) -> Wrapping<u16>

source§

impl Cast<Wrapping<u16>> for u64

source§

fn cast(self) -> Wrapping<u16>

source§

impl Cast<Wrapping<u16>> for u128

source§

fn cast(self) -> Wrapping<u16>

source§

impl Cast<Wrapping<u16>> for usize

source§

fn cast(self) -> Wrapping<u16>

source§

impl Cast<Wrapping<u32>> for bool

source§

fn cast(self) -> Wrapping<u32>

source§

impl Cast<Wrapping<u32>> for f32

source§

fn cast(self) -> Wrapping<u32>

source§

impl Cast<Wrapping<u32>> for f64

source§

fn cast(self) -> Wrapping<u32>

source§

impl Cast<Wrapping<u32>> for i8

source§

fn cast(self) -> Wrapping<u32>

source§

impl Cast<Wrapping<u32>> for i16

source§

fn cast(self) -> Wrapping<u32>

source§

impl Cast<Wrapping<u32>> for i32

source§

fn cast(self) -> Wrapping<u32>

source§

impl Cast<Wrapping<u32>> for i64

source§

fn cast(self) -> Wrapping<u32>

source§

impl Cast<Wrapping<u32>> for i128

source§

fn cast(self) -> Wrapping<u32>

source§

impl Cast<Wrapping<u32>> for isize

source§

fn cast(self) -> Wrapping<u32>

source§

impl Cast<Wrapping<u32>> for u8

source§

fn cast(self) -> Wrapping<u32>

source§

impl Cast<Wrapping<u32>> for u16

source§

fn cast(self) -> Wrapping<u32>

source§

impl Cast<Wrapping<u32>> for u32

source§

fn cast(self) -> Wrapping<u32>

source§

impl Cast<Wrapping<u32>> for u64

source§

fn cast(self) -> Wrapping<u32>

source§

impl Cast<Wrapping<u32>> for u128

source§

fn cast(self) -> Wrapping<u32>

source§

impl Cast<Wrapping<u32>> for usize

source§

fn cast(self) -> Wrapping<u32>

source§

impl Cast<Wrapping<u64>> for bool

source§

fn cast(self) -> Wrapping<u64>

source§

impl Cast<Wrapping<u64>> for f32

source§

fn cast(self) -> Wrapping<u64>

source§

impl Cast<Wrapping<u64>> for f64

source§

fn cast(self) -> Wrapping<u64>

source§

impl Cast<Wrapping<u64>> for i8

source§

fn cast(self) -> Wrapping<u64>

source§

impl Cast<Wrapping<u64>> for i16

source§

fn cast(self) -> Wrapping<u64>

source§

impl Cast<Wrapping<u64>> for i32

source§

fn cast(self) -> Wrapping<u64>

source§

impl Cast<Wrapping<u64>> for i64

source§

fn cast(self) -> Wrapping<u64>

source§

impl Cast<Wrapping<u64>> for i128

source§

fn cast(self) -> Wrapping<u64>

source§

impl Cast<Wrapping<u64>> for isize

source§

fn cast(self) -> Wrapping<u64>

source§

impl Cast<Wrapping<u64>> for u8

source§

fn cast(self) -> Wrapping<u64>

source§

impl Cast<Wrapping<u64>> for u16

source§

fn cast(self) -> Wrapping<u64>

source§

impl Cast<Wrapping<u64>> for u32

source§

fn cast(self) -> Wrapping<u64>

source§

impl Cast<Wrapping<u64>> for u64

source§

fn cast(self) -> Wrapping<u64>

source§

impl Cast<Wrapping<u64>> for u128

source§

fn cast(self) -> Wrapping<u64>

source§

impl Cast<Wrapping<u64>> for usize

source§

fn cast(self) -> Wrapping<u64>

source§

impl Cast<Wrapping<u128>> for bool

source§

fn cast(self) -> Wrapping<u128>

source§

impl Cast<Wrapping<u128>> for f32

source§

fn cast(self) -> Wrapping<u128>

source§

impl Cast<Wrapping<u128>> for f64

source§

fn cast(self) -> Wrapping<u128>

source§

impl Cast<Wrapping<u128>> for i8

source§

fn cast(self) -> Wrapping<u128>

source§

impl Cast<Wrapping<u128>> for i16

source§

fn cast(self) -> Wrapping<u128>

source§

impl Cast<Wrapping<u128>> for i32

source§

fn cast(self) -> Wrapping<u128>

source§

impl Cast<Wrapping<u128>> for i64

source§

fn cast(self) -> Wrapping<u128>

source§

impl Cast<Wrapping<u128>> for i128

source§

fn cast(self) -> Wrapping<u128>

source§

impl Cast<Wrapping<u128>> for isize

source§

fn cast(self) -> Wrapping<u128>

source§

impl Cast<Wrapping<u128>> for u8

source§

fn cast(self) -> Wrapping<u128>

source§

impl Cast<Wrapping<u128>> for u16

source§

fn cast(self) -> Wrapping<u128>

source§

impl Cast<Wrapping<u128>> for u32

source§

fn cast(self) -> Wrapping<u128>

source§

impl Cast<Wrapping<u128>> for u64

source§

fn cast(self) -> Wrapping<u128>

source§

impl Cast<Wrapping<u128>> for u128

source§

fn cast(self) -> Wrapping<u128>

source§

impl Cast<Wrapping<u128>> for usize

source§

fn cast(self) -> Wrapping<u128>

source§

impl Cast<Wrapping<usize>> for bool

source§

fn cast(self) -> Wrapping<usize>

source§

impl Cast<Wrapping<usize>> for f32

source§

fn cast(self) -> Wrapping<usize>

source§

impl Cast<Wrapping<usize>> for f64

source§

fn cast(self) -> Wrapping<usize>

source§

impl Cast<Wrapping<usize>> for i8

source§

fn cast(self) -> Wrapping<usize>

source§

impl Cast<Wrapping<usize>> for i16

source§

fn cast(self) -> Wrapping<usize>

source§

impl Cast<Wrapping<usize>> for i32

source§

fn cast(self) -> Wrapping<usize>

source§

impl Cast<Wrapping<usize>> for i64

source§

fn cast(self) -> Wrapping<usize>

source§

impl Cast<Wrapping<usize>> for i128

source§

fn cast(self) -> Wrapping<usize>

source§

impl Cast<Wrapping<usize>> for isize

source§

fn cast(self) -> Wrapping<usize>

source§

impl Cast<Wrapping<usize>> for u8

source§

fn cast(self) -> Wrapping<usize>

source§

impl Cast<Wrapping<usize>> for u16

source§

fn cast(self) -> Wrapping<usize>

source§

impl Cast<Wrapping<usize>> for u32

source§

fn cast(self) -> Wrapping<usize>

source§

impl Cast<Wrapping<usize>> for u64

source§

fn cast(self) -> Wrapping<usize>

source§

impl Cast<Wrapping<usize>> for u128

source§

fn cast(self) -> Wrapping<usize>

source§

impl Cast<Wrapping<usize>> for usize

source§

fn cast(self) -> Wrapping<usize>

source§

impl Cast<f32> for f32

source§

fn cast(self) -> f32

source§

impl Cast<f32> for f64

source§

fn cast(self) -> f32

source§

impl Cast<f32> for i8

source§

fn cast(self) -> f32

source§

impl Cast<f32> for i16

source§

fn cast(self) -> f32

source§

impl Cast<f32> for i32

source§

fn cast(self) -> f32

source§

impl Cast<f32> for i64

source§

fn cast(self) -> f32

source§

impl Cast<f32> for i128

source§

fn cast(self) -> f32

source§

impl Cast<f32> for isize

source§

fn cast(self) -> f32

source§

impl Cast<f32> for u8

source§

fn cast(self) -> f32

source§

impl Cast<f32> for u16

source§

fn cast(self) -> f32

source§

impl Cast<f32> for u32

source§

fn cast(self) -> f32

source§

impl Cast<f32> for u64

source§

fn cast(self) -> f32

source§

impl Cast<f32> for u128

source§

fn cast(self) -> f32

source§

impl Cast<f32> for usize

source§

fn cast(self) -> f32

source§

impl Cast<f64> for f32

source§

fn cast(self) -> f64

source§

impl Cast<f64> for f64

source§

fn cast(self) -> f64

source§

impl Cast<f64> for i8

source§

fn cast(self) -> f64

source§

impl Cast<f64> for i16

source§

fn cast(self) -> f64

source§

impl Cast<f64> for i32

source§

fn cast(self) -> f64

source§

impl Cast<f64> for i64

source§

fn cast(self) -> f64

source§

impl Cast<f64> for i128

source§

fn cast(self) -> f64

source§

impl Cast<f64> for isize

source§

fn cast(self) -> f64

source§

impl Cast<f64> for u8

source§

fn cast(self) -> f64

source§

impl Cast<f64> for u16

source§

fn cast(self) -> f64

source§

impl Cast<f64> for u32

source§

fn cast(self) -> f64

source§

impl Cast<f64> for u64

source§

fn cast(self) -> f64

source§

impl Cast<f64> for u128

source§

fn cast(self) -> f64

source§

impl Cast<f64> for usize

source§

fn cast(self) -> f64

source§

impl Cast<i8> for bool

source§

fn cast(self) -> i8

source§

impl Cast<i8> for f32

source§

fn cast(self) -> i8

source§

impl Cast<i8> for f64

source§

fn cast(self) -> i8

source§

impl Cast<i8> for i8

source§

fn cast(self) -> i8

source§

impl Cast<i8> for i16

source§

fn cast(self) -> i8

source§

impl Cast<i8> for i32

source§

fn cast(self) -> i8

source§

impl Cast<i8> for i64

source§

fn cast(self) -> i8

source§

impl Cast<i8> for i128

source§

fn cast(self) -> i8

source§

impl Cast<i8> for isize

source§

fn cast(self) -> i8

source§

impl Cast<i8> for u8

source§

fn cast(self) -> i8

source§

impl Cast<i8> for u16

source§

fn cast(self) -> i8

source§

impl Cast<i8> for u32

source§

fn cast(self) -> i8

source§

impl Cast<i8> for u64

source§

fn cast(self) -> i8

source§

impl Cast<i8> for u128

source§

fn cast(self) -> i8

source§

impl Cast<i8> for usize

source§

fn cast(self) -> i8

source§

impl Cast<i16> for bool

source§

fn cast(self) -> i16

source§

impl Cast<i16> for f32

source§

fn cast(self) -> i16

source§

impl Cast<i16> for f64

source§

fn cast(self) -> i16

source§

impl Cast<i16> for i8

source§

fn cast(self) -> i16

source§

impl Cast<i16> for i16

source§

fn cast(self) -> i16

source§

impl Cast<i16> for i32

source§

fn cast(self) -> i16

source§

impl Cast<i16> for i64

source§

fn cast(self) -> i16

source§

impl Cast<i16> for i128

source§

fn cast(self) -> i16

source§

impl Cast<i16> for isize

source§

fn cast(self) -> i16

source§

impl Cast<i16> for u8

source§

fn cast(self) -> i16

source§

impl Cast<i16> for u16

source§

fn cast(self) -> i16

source§

impl Cast<i16> for u32

source§

fn cast(self) -> i16

source§

impl Cast<i16> for u64

source§

fn cast(self) -> i16

source§

impl Cast<i16> for u128

source§

fn cast(self) -> i16

source§

impl Cast<i16> for usize

source§

fn cast(self) -> i16

source§

impl Cast<i32> for bool

source§

fn cast(self) -> i32

source§

impl Cast<i32> for f32

source§

fn cast(self) -> i32

source§

impl Cast<i32> for f64

source§

fn cast(self) -> i32

source§

impl Cast<i32> for i8

source§

fn cast(self) -> i32

source§

impl Cast<i32> for i16

source§

fn cast(self) -> i32

source§

impl Cast<i32> for i32

source§

fn cast(self) -> i32

source§

impl Cast<i32> for i64

source§

fn cast(self) -> i32

source§

impl Cast<i32> for i128

source§

fn cast(self) -> i32

source§

impl Cast<i32> for isize

source§

fn cast(self) -> i32

source§

impl Cast<i32> for u8

source§

fn cast(self) -> i32

source§

impl Cast<i32> for u16

source§

fn cast(self) -> i32

source§

impl Cast<i32> for u32

source§

fn cast(self) -> i32

source§

impl Cast<i32> for u64

source§

fn cast(self) -> i32

source§

impl Cast<i32> for u128

source§

fn cast(self) -> i32

source§

impl Cast<i32> for usize

source§

fn cast(self) -> i32

source§

impl Cast<i64> for bool

source§

fn cast(self) -> i64

source§

impl Cast<i64> for f32

source§

fn cast(self) -> i64

source§

impl Cast<i64> for f64

source§

fn cast(self) -> i64

source§

impl Cast<i64> for i8

source§

fn cast(self) -> i64

source§

impl Cast<i64> for i16

source§

fn cast(self) -> i64

source§

impl Cast<i64> for i32

source§

fn cast(self) -> i64

source§

impl Cast<i64> for i64

source§

fn cast(self) -> i64

source§

impl Cast<i64> for i128

source§

fn cast(self) -> i64

source§

impl Cast<i64> for isize

source§

fn cast(self) -> i64

source§

impl Cast<i64> for u8

source§

fn cast(self) -> i64

source§

impl Cast<i64> for u16

source§

fn cast(self) -> i64

source§

impl Cast<i64> for u32

source§

fn cast(self) -> i64

source§

impl Cast<i64> for u64

source§

fn cast(self) -> i64

source§

impl Cast<i64> for u128

source§

fn cast(self) -> i64

source§

impl Cast<i64> for usize

source§

fn cast(self) -> i64

source§

impl Cast<i128> for bool

source§

fn cast(self) -> i128

source§

impl Cast<i128> for f32

source§

fn cast(self) -> i128

source§

impl Cast<i128> for f64

source§

fn cast(self) -> i128

source§

impl Cast<i128> for i8

source§

fn cast(self) -> i128

source§

impl Cast<i128> for i16

source§

fn cast(self) -> i128

source§

impl Cast<i128> for i32

source§

fn cast(self) -> i128

source§

impl Cast<i128> for i64

source§

fn cast(self) -> i128

source§

impl Cast<i128> for i128

source§

fn cast(self) -> i128

source§

impl Cast<i128> for isize

source§

fn cast(self) -> i128

source§

impl Cast<i128> for u8

source§

fn cast(self) -> i128

source§

impl Cast<i128> for u16

source§

fn cast(self) -> i128

source§

impl Cast<i128> for u32

source§

fn cast(self) -> i128

source§

impl Cast<i128> for u64

source§

fn cast(self) -> i128

source§

impl Cast<i128> for u128

source§

fn cast(self) -> i128

source§

impl Cast<i128> for usize

source§

fn cast(self) -> i128

source§

impl Cast<isize> for bool

source§

fn cast(self) -> isize

source§

impl Cast<isize> for f32

source§

fn cast(self) -> isize

source§

impl Cast<isize> for f64

source§

fn cast(self) -> isize

source§

impl Cast<isize> for i8

source§

fn cast(self) -> isize

source§

impl Cast<isize> for i16

source§

fn cast(self) -> isize

source§

impl Cast<isize> for i32

source§

fn cast(self) -> isize

source§

impl Cast<isize> for i64

source§

fn cast(self) -> isize

source§

impl Cast<isize> for i128

source§

fn cast(self) -> isize

source§

impl Cast<isize> for isize

source§

fn cast(self) -> isize

source§

impl Cast<isize> for u8

source§

fn cast(self) -> isize

source§

impl Cast<isize> for u16

source§

fn cast(self) -> isize

source§

impl Cast<isize> for u32

source§

fn cast(self) -> isize

source§

impl Cast<isize> for u64

source§

fn cast(self) -> isize

source§

impl Cast<isize> for u128

source§

fn cast(self) -> isize

source§

impl Cast<isize> for usize

source§

fn cast(self) -> isize

source§

impl Cast<u8> for bool

source§

fn cast(self) -> u8

source§

impl Cast<u8> for f32

source§

fn cast(self) -> u8

source§

impl Cast<u8> for f64

source§

fn cast(self) -> u8

source§

impl Cast<u8> for i8

source§

fn cast(self) -> u8

source§

impl Cast<u8> for i16

source§

fn cast(self) -> u8

source§

impl Cast<u8> for i32

source§

fn cast(self) -> u8

source§

impl Cast<u8> for i64

source§

fn cast(self) -> u8

source§

impl Cast<u8> for i128

source§

fn cast(self) -> u8

source§

impl Cast<u8> for isize

source§

fn cast(self) -> u8

source§

impl Cast<u8> for u8

source§

fn cast(self) -> u8

source§

impl Cast<u8> for u16

source§

fn cast(self) -> u8

source§

impl Cast<u8> for u32

source§

fn cast(self) -> u8

source§

impl Cast<u8> for u64

source§

fn cast(self) -> u8

source§

impl Cast<u8> for u128

source§

fn cast(self) -> u8

source§

impl Cast<u8> for usize

source§

fn cast(self) -> u8

source§

impl Cast<u16> for bool

source§

fn cast(self) -> u16

source§

impl Cast<u16> for f32

source§

fn cast(self) -> u16

source§

impl Cast<u16> for f64

source§

fn cast(self) -> u16

source§

impl Cast<u16> for i8

source§

fn cast(self) -> u16

source§

impl Cast<u16> for i16

source§

fn cast(self) -> u16

source§

impl Cast<u16> for i32

source§

fn cast(self) -> u16

source§

impl Cast<u16> for i64

source§

fn cast(self) -> u16

source§

impl Cast<u16> for i128

source§

fn cast(self) -> u16

source§

impl Cast<u16> for isize

source§

fn cast(self) -> u16

source§

impl Cast<u16> for u8

source§

fn cast(self) -> u16

source§

impl Cast<u16> for u16

source§

fn cast(self) -> u16

source§

impl Cast<u16> for u32

source§

fn cast(self) -> u16

source§

impl Cast<u16> for u64

source§

fn cast(self) -> u16

source§

impl Cast<u16> for u128

source§

fn cast(self) -> u16

source§

impl Cast<u16> for usize

source§

fn cast(self) -> u16

source§

impl Cast<u32> for bool

source§

fn cast(self) -> u32

source§

impl Cast<u32> for f32

source§

fn cast(self) -> u32

source§

impl Cast<u32> for f64

source§

fn cast(self) -> u32

source§

impl Cast<u32> for i8

source§

fn cast(self) -> u32

source§

impl Cast<u32> for i16

source§

fn cast(self) -> u32

source§

impl Cast<u32> for i32

source§

fn cast(self) -> u32

source§

impl Cast<u32> for i64

source§

fn cast(self) -> u32

source§

impl Cast<u32> for i128

source§

fn cast(self) -> u32

source§

impl Cast<u32> for isize

source§

fn cast(self) -> u32

source§

impl Cast<u32> for u8

source§

fn cast(self) -> u32

source§

impl Cast<u32> for u16

source§

fn cast(self) -> u32

source§

impl Cast<u32> for u32

source§

fn cast(self) -> u32

source§

impl Cast<u32> for u64

source§

fn cast(self) -> u32

source§

impl Cast<u32> for u128

source§

fn cast(self) -> u32

source§

impl Cast<u32> for usize

source§

fn cast(self) -> u32

source§

impl Cast<u64> for bool

source§

fn cast(self) -> u64

source§

impl Cast<u64> for f32

source§

fn cast(self) -> u64

source§

impl Cast<u64> for f64

source§

fn cast(self) -> u64

source§

impl Cast<u64> for i8

source§

fn cast(self) -> u64

source§

impl Cast<u64> for i16

source§

fn cast(self) -> u64

source§

impl Cast<u64> for i32

source§

fn cast(self) -> u64

source§

impl Cast<u64> for i64

source§

fn cast(self) -> u64

source§

impl Cast<u64> for i128

source§

fn cast(self) -> u64

source§

impl Cast<u64> for isize

source§

fn cast(self) -> u64

source§

impl Cast<u64> for u8

source§

fn cast(self) -> u64

source§

impl Cast<u64> for u16

source§

fn cast(self) -> u64

source§

impl Cast<u64> for u32

source§

fn cast(self) -> u64

source§

impl Cast<u64> for u64

source§

fn cast(self) -> u64

source§

impl Cast<u64> for u128

source§

fn cast(self) -> u64

source§

impl Cast<u64> for usize

source§

fn cast(self) -> u64

source§

impl Cast<u128> for bool

source§

fn cast(self) -> u128

source§

impl Cast<u128> for f32

source§

fn cast(self) -> u128

source§

impl Cast<u128> for f64

source§

fn cast(self) -> u128

source§

impl Cast<u128> for i8

source§

fn cast(self) -> u128

source§

impl Cast<u128> for i16

source§

fn cast(self) -> u128

source§

impl Cast<u128> for i32

source§

fn cast(self) -> u128

source§

impl Cast<u128> for i64

source§

fn cast(self) -> u128

source§

impl Cast<u128> for i128

source§

fn cast(self) -> u128

source§

impl Cast<u128> for isize

source§

fn cast(self) -> u128

source§

impl Cast<u128> for u8

source§

fn cast(self) -> u128

source§

impl Cast<u128> for u16

source§

fn cast(self) -> u128

source§

impl Cast<u128> for u32

source§

fn cast(self) -> u128

source§

impl Cast<u128> for u64

source§

fn cast(self) -> u128

source§

impl Cast<u128> for u128

source§

fn cast(self) -> u128

source§

impl Cast<u128> for usize

source§

fn cast(self) -> u128

source§

impl Cast<usize> for bool

source§

fn cast(self) -> usize

source§

impl Cast<usize> for f32

source§

fn cast(self) -> usize

source§

impl Cast<usize> for f64

source§

fn cast(self) -> usize

source§

impl Cast<usize> for i8

source§

fn cast(self) -> usize

source§

impl Cast<usize> for i16

source§

fn cast(self) -> usize

source§

impl Cast<usize> for i32

source§

fn cast(self) -> usize

source§

impl Cast<usize> for i64

source§

fn cast(self) -> usize

source§

impl Cast<usize> for i128

source§

fn cast(self) -> usize

source§

impl Cast<usize> for isize

source§

fn cast(self) -> usize

source§

impl Cast<usize> for u8

source§

fn cast(self) -> usize

source§

impl Cast<usize> for u16

source§

fn cast(self) -> usize

source§

impl Cast<usize> for u32

source§

fn cast(self) -> usize

source§

impl Cast<usize> for u64

source§

fn cast(self) -> usize

source§

impl Cast<usize> for u128

source§

fn cast(self) -> usize

source§

impl Cast<usize> for usize

source§

fn cast(self) -> usize

Implementors§

source§

impl Cast<Wrapping<i8>> for Round<f32>

source§

impl Cast<Wrapping<i8>> for Round<f64>

source§

impl Cast<Wrapping<i16>> for Round<f32>

source§

impl Cast<Wrapping<i16>> for Round<f64>

source§

impl Cast<Wrapping<i32>> for Round<f32>

source§

impl Cast<Wrapping<i32>> for Round<f64>

source§

impl Cast<Wrapping<i64>> for Round<f32>

source§

impl Cast<Wrapping<i64>> for Round<f64>

source§

impl Cast<Wrapping<i128>> for Round<f32>

source§

impl Cast<Wrapping<i128>> for Round<f64>

source§

impl Cast<Wrapping<isize>> for Round<f32>

source§

impl Cast<Wrapping<isize>> for Round<f64>

source§

impl Cast<Wrapping<u8>> for Round<f32>

source§

impl Cast<Wrapping<u8>> for Round<f64>

source§

impl Cast<Wrapping<u16>> for Round<f32>

source§

impl Cast<Wrapping<u16>> for Round<f64>

source§

impl Cast<Wrapping<u32>> for Round<f32>

source§

impl Cast<Wrapping<u32>> for Round<f64>

source§

impl Cast<Wrapping<u64>> for Round<f32>

source§

impl Cast<Wrapping<u64>> for Round<f64>

source§

impl Cast<Wrapping<u128>> for Round<f32>

source§

impl Cast<Wrapping<u128>> for Round<f64>

source§

impl Cast<Wrapping<usize>> for Round<f32>

source§

impl Cast<Wrapping<usize>> for Round<f64>

source§

impl Cast<i8> for Round<f32>

source§

impl Cast<i8> for Round<f64>

source§

impl Cast<i16> for Round<f32>

source§

impl Cast<i16> for Round<f64>

source§

impl Cast<i32> for Round<f32>

source§

impl Cast<i32> for Round<f64>

source§

impl Cast<i64> for Round<f32>

source§

impl Cast<i64> for Round<f64>

source§

impl Cast<i128> for Round<f32>

source§

impl Cast<i128> for Round<f64>

source§

impl Cast<isize> for Round<f32>

source§

impl Cast<isize> for Round<f64>

source§

impl Cast<u8> for Round<f32>

source§

impl Cast<u8> for Round<f64>

source§

impl Cast<u16> for Round<f32>

source§

impl Cast<u16> for Round<f64>

source§

impl Cast<u32> for Round<f32>

source§

impl Cast<u32> for Round<f64>

source§

impl Cast<u64> for Round<f32>

source§

impl Cast<u64> for Round<f64>

source§

impl Cast<u128> for Round<f32>

source§

impl Cast<u128> for Round<f64>

source§

impl Cast<usize> for Round<f32>

source§

impl Cast<usize> for Round<f64>