Trait az::CheckedCast

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

Used for checked casts.

This trait’s method returns [None] if the value does not fit.

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

§Examples

use az::CheckedCast;
use core::f32;

let a: Option<u32> = 5i32.checked_cast();
assert_eq!(a, Some(5));
assert_eq!(CheckedCast::<u32>::checked_cast(-5i32), None);
assert_eq!(CheckedCast::<u8>::checked_cast(17.1f32), Some(17));
let b: Option<u8> = f32::NAN.checked_cast();
assert_eq!(b, None);

Required Methods§

source

fn checked_cast(self) -> Option<Dst>

Casts the value.

Implementations on Foreign Types§

source§

impl CheckedCast<Wrapping<i8>> for bool

source§

fn checked_cast(self) -> Option<Wrapping<i8>>

source§

impl CheckedCast<Wrapping<i8>> for f32

source§

fn checked_cast(self) -> Option<Wrapping<i8>>

source§

impl CheckedCast<Wrapping<i8>> for f64

source§

fn checked_cast(self) -> Option<Wrapping<i8>>

source§

impl CheckedCast<Wrapping<i8>> for i8

source§

fn checked_cast(self) -> Option<Wrapping<i8>>

source§

impl CheckedCast<Wrapping<i8>> for i16

source§

fn checked_cast(self) -> Option<Wrapping<i8>>

source§

impl CheckedCast<Wrapping<i8>> for i32

source§

fn checked_cast(self) -> Option<Wrapping<i8>>

source§

impl CheckedCast<Wrapping<i8>> for i64

source§

fn checked_cast(self) -> Option<Wrapping<i8>>

source§

impl CheckedCast<Wrapping<i8>> for i128

source§

fn checked_cast(self) -> Option<Wrapping<i8>>

source§

impl CheckedCast<Wrapping<i8>> for isize

source§

fn checked_cast(self) -> Option<Wrapping<i8>>

source§

impl CheckedCast<Wrapping<i8>> for u8

source§

fn checked_cast(self) -> Option<Wrapping<i8>>

source§

impl CheckedCast<Wrapping<i8>> for u16

source§

fn checked_cast(self) -> Option<Wrapping<i8>>

source§

impl CheckedCast<Wrapping<i8>> for u32

source§

fn checked_cast(self) -> Option<Wrapping<i8>>

source§

impl CheckedCast<Wrapping<i8>> for u64

source§

fn checked_cast(self) -> Option<Wrapping<i8>>

source§

impl CheckedCast<Wrapping<i8>> for u128

source§

fn checked_cast(self) -> Option<Wrapping<i8>>

source§

impl CheckedCast<Wrapping<i8>> for usize

source§

fn checked_cast(self) -> Option<Wrapping<i8>>

source§

impl CheckedCast<Wrapping<i16>> for bool

source§

fn checked_cast(self) -> Option<Wrapping<i16>>

source§

impl CheckedCast<Wrapping<i16>> for f32

source§

fn checked_cast(self) -> Option<Wrapping<i16>>

source§

impl CheckedCast<Wrapping<i16>> for f64

source§

fn checked_cast(self) -> Option<Wrapping<i16>>

source§

impl CheckedCast<Wrapping<i16>> for i8

source§

fn checked_cast(self) -> Option<Wrapping<i16>>

source§

impl CheckedCast<Wrapping<i16>> for i16

source§

fn checked_cast(self) -> Option<Wrapping<i16>>

source§

impl CheckedCast<Wrapping<i16>> for i32

source§

fn checked_cast(self) -> Option<Wrapping<i16>>

source§

impl CheckedCast<Wrapping<i16>> for i64

source§

fn checked_cast(self) -> Option<Wrapping<i16>>

source§

impl CheckedCast<Wrapping<i16>> for i128

source§

fn checked_cast(self) -> Option<Wrapping<i16>>

source§

impl CheckedCast<Wrapping<i16>> for isize

source§

fn checked_cast(self) -> Option<Wrapping<i16>>

source§

impl CheckedCast<Wrapping<i16>> for u8

source§

fn checked_cast(self) -> Option<Wrapping<i16>>

source§

impl CheckedCast<Wrapping<i16>> for u16

source§

fn checked_cast(self) -> Option<Wrapping<i16>>

source§

impl CheckedCast<Wrapping<i16>> for u32

source§

fn checked_cast(self) -> Option<Wrapping<i16>>

source§

impl CheckedCast<Wrapping<i16>> for u64

source§

fn checked_cast(self) -> Option<Wrapping<i16>>

source§

impl CheckedCast<Wrapping<i16>> for u128

source§

fn checked_cast(self) -> Option<Wrapping<i16>>

source§

impl CheckedCast<Wrapping<i16>> for usize

source§

fn checked_cast(self) -> Option<Wrapping<i16>>

source§

impl CheckedCast<Wrapping<i32>> for bool

source§

fn checked_cast(self) -> Option<Wrapping<i32>>

source§

impl CheckedCast<Wrapping<i32>> for f32

source§

fn checked_cast(self) -> Option<Wrapping<i32>>

source§

impl CheckedCast<Wrapping<i32>> for f64

source§

fn checked_cast(self) -> Option<Wrapping<i32>>

source§

impl CheckedCast<Wrapping<i32>> for i8

source§

fn checked_cast(self) -> Option<Wrapping<i32>>

source§

impl CheckedCast<Wrapping<i32>> for i16

source§

fn checked_cast(self) -> Option<Wrapping<i32>>

source§

impl CheckedCast<Wrapping<i32>> for i32

source§

fn checked_cast(self) -> Option<Wrapping<i32>>

source§

impl CheckedCast<Wrapping<i32>> for i64

source§

fn checked_cast(self) -> Option<Wrapping<i32>>

source§

impl CheckedCast<Wrapping<i32>> for i128

source§

fn checked_cast(self) -> Option<Wrapping<i32>>

source§

impl CheckedCast<Wrapping<i32>> for isize

source§

fn checked_cast(self) -> Option<Wrapping<i32>>

source§

impl CheckedCast<Wrapping<i32>> for u8

source§

fn checked_cast(self) -> Option<Wrapping<i32>>

source§

impl CheckedCast<Wrapping<i32>> for u16

source§

fn checked_cast(self) -> Option<Wrapping<i32>>

source§

impl CheckedCast<Wrapping<i32>> for u32

source§

fn checked_cast(self) -> Option<Wrapping<i32>>

source§

impl CheckedCast<Wrapping<i32>> for u64

source§

fn checked_cast(self) -> Option<Wrapping<i32>>

source§

impl CheckedCast<Wrapping<i32>> for u128

source§

fn checked_cast(self) -> Option<Wrapping<i32>>

source§

impl CheckedCast<Wrapping<i32>> for usize

source§

fn checked_cast(self) -> Option<Wrapping<i32>>

source§

impl CheckedCast<Wrapping<i64>> for bool

source§

fn checked_cast(self) -> Option<Wrapping<i64>>

source§

impl CheckedCast<Wrapping<i64>> for f32

source§

fn checked_cast(self) -> Option<Wrapping<i64>>

source§

impl CheckedCast<Wrapping<i64>> for f64

source§

fn checked_cast(self) -> Option<Wrapping<i64>>

source§

impl CheckedCast<Wrapping<i64>> for i8

source§

fn checked_cast(self) -> Option<Wrapping<i64>>

source§

impl CheckedCast<Wrapping<i64>> for i16

source§

fn checked_cast(self) -> Option<Wrapping<i64>>

source§

impl CheckedCast<Wrapping<i64>> for i32

source§

fn checked_cast(self) -> Option<Wrapping<i64>>

source§

impl CheckedCast<Wrapping<i64>> for i64

source§

fn checked_cast(self) -> Option<Wrapping<i64>>

source§

impl CheckedCast<Wrapping<i64>> for i128

source§

fn checked_cast(self) -> Option<Wrapping<i64>>

source§

impl CheckedCast<Wrapping<i64>> for isize

source§

fn checked_cast(self) -> Option<Wrapping<i64>>

source§

impl CheckedCast<Wrapping<i64>> for u8

source§

fn checked_cast(self) -> Option<Wrapping<i64>>

source§

impl CheckedCast<Wrapping<i64>> for u16

source§

fn checked_cast(self) -> Option<Wrapping<i64>>

source§

impl CheckedCast<Wrapping<i64>> for u32

source§

fn checked_cast(self) -> Option<Wrapping<i64>>

source§

impl CheckedCast<Wrapping<i64>> for u64

source§

fn checked_cast(self) -> Option<Wrapping<i64>>

source§

impl CheckedCast<Wrapping<i64>> for u128

source§

fn checked_cast(self) -> Option<Wrapping<i64>>

source§

impl CheckedCast<Wrapping<i64>> for usize

source§

fn checked_cast(self) -> Option<Wrapping<i64>>

source§

impl CheckedCast<Wrapping<i128>> for bool

source§

fn checked_cast(self) -> Option<Wrapping<i128>>

source§

impl CheckedCast<Wrapping<i128>> for f32

source§

fn checked_cast(self) -> Option<Wrapping<i128>>

source§

impl CheckedCast<Wrapping<i128>> for f64

source§

fn checked_cast(self) -> Option<Wrapping<i128>>

source§

impl CheckedCast<Wrapping<i128>> for i8

source§

fn checked_cast(self) -> Option<Wrapping<i128>>

source§

impl CheckedCast<Wrapping<i128>> for i16

source§

fn checked_cast(self) -> Option<Wrapping<i128>>

source§

impl CheckedCast<Wrapping<i128>> for i32

source§

fn checked_cast(self) -> Option<Wrapping<i128>>

source§

impl CheckedCast<Wrapping<i128>> for i64

source§

fn checked_cast(self) -> Option<Wrapping<i128>>

source§

impl CheckedCast<Wrapping<i128>> for i128

source§

fn checked_cast(self) -> Option<Wrapping<i128>>

source§

impl CheckedCast<Wrapping<i128>> for isize

source§

fn checked_cast(self) -> Option<Wrapping<i128>>

source§

impl CheckedCast<Wrapping<i128>> for u8

source§

fn checked_cast(self) -> Option<Wrapping<i128>>

source§

impl CheckedCast<Wrapping<i128>> for u16

source§

fn checked_cast(self) -> Option<Wrapping<i128>>

source§

impl CheckedCast<Wrapping<i128>> for u32

source§

fn checked_cast(self) -> Option<Wrapping<i128>>

source§

impl CheckedCast<Wrapping<i128>> for u64

source§

fn checked_cast(self) -> Option<Wrapping<i128>>

source§

impl CheckedCast<Wrapping<i128>> for u128

source§

fn checked_cast(self) -> Option<Wrapping<i128>>

source§

impl CheckedCast<Wrapping<i128>> for usize

source§

fn checked_cast(self) -> Option<Wrapping<i128>>

source§

impl CheckedCast<Wrapping<isize>> for bool

source§

fn checked_cast(self) -> Option<Wrapping<isize>>

source§

impl CheckedCast<Wrapping<isize>> for f32

source§

fn checked_cast(self) -> Option<Wrapping<isize>>

source§

impl CheckedCast<Wrapping<isize>> for f64

source§

fn checked_cast(self) -> Option<Wrapping<isize>>

source§

impl CheckedCast<Wrapping<isize>> for i8

source§

fn checked_cast(self) -> Option<Wrapping<isize>>

source§

impl CheckedCast<Wrapping<isize>> for i16

source§

fn checked_cast(self) -> Option<Wrapping<isize>>

source§

impl CheckedCast<Wrapping<isize>> for i32

source§

fn checked_cast(self) -> Option<Wrapping<isize>>

source§

impl CheckedCast<Wrapping<isize>> for i64

source§

fn checked_cast(self) -> Option<Wrapping<isize>>

source§

impl CheckedCast<Wrapping<isize>> for i128

source§

fn checked_cast(self) -> Option<Wrapping<isize>>

source§

impl CheckedCast<Wrapping<isize>> for isize

source§

fn checked_cast(self) -> Option<Wrapping<isize>>

source§

impl CheckedCast<Wrapping<isize>> for u8

source§

fn checked_cast(self) -> Option<Wrapping<isize>>

source§

impl CheckedCast<Wrapping<isize>> for u16

source§

fn checked_cast(self) -> Option<Wrapping<isize>>

source§

impl CheckedCast<Wrapping<isize>> for u32

source§

fn checked_cast(self) -> Option<Wrapping<isize>>

source§

impl CheckedCast<Wrapping<isize>> for u64

source§

fn checked_cast(self) -> Option<Wrapping<isize>>

source§

impl CheckedCast<Wrapping<isize>> for u128

source§

fn checked_cast(self) -> Option<Wrapping<isize>>

source§

impl CheckedCast<Wrapping<isize>> for usize

source§

fn checked_cast(self) -> Option<Wrapping<isize>>

source§

impl CheckedCast<Wrapping<u8>> for bool

source§

fn checked_cast(self) -> Option<Wrapping<u8>>

source§

impl CheckedCast<Wrapping<u8>> for f32

source§

fn checked_cast(self) -> Option<Wrapping<u8>>

source§

impl CheckedCast<Wrapping<u8>> for f64

source§

fn checked_cast(self) -> Option<Wrapping<u8>>

source§

impl CheckedCast<Wrapping<u8>> for i8

source§

fn checked_cast(self) -> Option<Wrapping<u8>>

source§

impl CheckedCast<Wrapping<u8>> for i16

source§

fn checked_cast(self) -> Option<Wrapping<u8>>

source§

impl CheckedCast<Wrapping<u8>> for i32

source§

fn checked_cast(self) -> Option<Wrapping<u8>>

source§

impl CheckedCast<Wrapping<u8>> for i64

source§

fn checked_cast(self) -> Option<Wrapping<u8>>

source§

impl CheckedCast<Wrapping<u8>> for i128

source§

fn checked_cast(self) -> Option<Wrapping<u8>>

source§

impl CheckedCast<Wrapping<u8>> for isize

source§

fn checked_cast(self) -> Option<Wrapping<u8>>

source§

impl CheckedCast<Wrapping<u8>> for u8

source§

fn checked_cast(self) -> Option<Wrapping<u8>>

source§

impl CheckedCast<Wrapping<u8>> for u16

source§

fn checked_cast(self) -> Option<Wrapping<u8>>

source§

impl CheckedCast<Wrapping<u8>> for u32

source§

fn checked_cast(self) -> Option<Wrapping<u8>>

source§

impl CheckedCast<Wrapping<u8>> for u64

source§

fn checked_cast(self) -> Option<Wrapping<u8>>

source§

impl CheckedCast<Wrapping<u8>> for u128

source§

fn checked_cast(self) -> Option<Wrapping<u8>>

source§

impl CheckedCast<Wrapping<u8>> for usize

source§

fn checked_cast(self) -> Option<Wrapping<u8>>

source§

impl CheckedCast<Wrapping<u16>> for bool

source§

fn checked_cast(self) -> Option<Wrapping<u16>>

source§

impl CheckedCast<Wrapping<u16>> for f32

source§

fn checked_cast(self) -> Option<Wrapping<u16>>

source§

impl CheckedCast<Wrapping<u16>> for f64

source§

fn checked_cast(self) -> Option<Wrapping<u16>>

source§

impl CheckedCast<Wrapping<u16>> for i8

source§

fn checked_cast(self) -> Option<Wrapping<u16>>

source§

impl CheckedCast<Wrapping<u16>> for i16

source§

fn checked_cast(self) -> Option<Wrapping<u16>>

source§

impl CheckedCast<Wrapping<u16>> for i32

source§

fn checked_cast(self) -> Option<Wrapping<u16>>

source§

impl CheckedCast<Wrapping<u16>> for i64

source§

fn checked_cast(self) -> Option<Wrapping<u16>>

source§

impl CheckedCast<Wrapping<u16>> for i128

source§

fn checked_cast(self) -> Option<Wrapping<u16>>

source§

impl CheckedCast<Wrapping<u16>> for isize

source§

fn checked_cast(self) -> Option<Wrapping<u16>>

source§

impl CheckedCast<Wrapping<u16>> for u8

source§

fn checked_cast(self) -> Option<Wrapping<u16>>

source§

impl CheckedCast<Wrapping<u16>> for u16

source§

fn checked_cast(self) -> Option<Wrapping<u16>>

source§

impl CheckedCast<Wrapping<u16>> for u32

source§

fn checked_cast(self) -> Option<Wrapping<u16>>

source§

impl CheckedCast<Wrapping<u16>> for u64

source§

fn checked_cast(self) -> Option<Wrapping<u16>>

source§

impl CheckedCast<Wrapping<u16>> for u128

source§

fn checked_cast(self) -> Option<Wrapping<u16>>

source§

impl CheckedCast<Wrapping<u16>> for usize

source§

fn checked_cast(self) -> Option<Wrapping<u16>>

source§

impl CheckedCast<Wrapping<u32>> for bool

source§

fn checked_cast(self) -> Option<Wrapping<u32>>

source§

impl CheckedCast<Wrapping<u32>> for f32

source§

fn checked_cast(self) -> Option<Wrapping<u32>>

source§

impl CheckedCast<Wrapping<u32>> for f64

source§

fn checked_cast(self) -> Option<Wrapping<u32>>

source§

impl CheckedCast<Wrapping<u32>> for i8

source§

fn checked_cast(self) -> Option<Wrapping<u32>>

source§

impl CheckedCast<Wrapping<u32>> for i16

source§

fn checked_cast(self) -> Option<Wrapping<u32>>

source§

impl CheckedCast<Wrapping<u32>> for i32

source§

fn checked_cast(self) -> Option<Wrapping<u32>>

source§

impl CheckedCast<Wrapping<u32>> for i64

source§

fn checked_cast(self) -> Option<Wrapping<u32>>

source§

impl CheckedCast<Wrapping<u32>> for i128

source§

fn checked_cast(self) -> Option<Wrapping<u32>>

source§

impl CheckedCast<Wrapping<u32>> for isize

source§

fn checked_cast(self) -> Option<Wrapping<u32>>

source§

impl CheckedCast<Wrapping<u32>> for u8

source§

fn checked_cast(self) -> Option<Wrapping<u32>>

source§

impl CheckedCast<Wrapping<u32>> for u16

source§

fn checked_cast(self) -> Option<Wrapping<u32>>

source§

impl CheckedCast<Wrapping<u32>> for u32

source§

fn checked_cast(self) -> Option<Wrapping<u32>>

source§

impl CheckedCast<Wrapping<u32>> for u64

source§

fn checked_cast(self) -> Option<Wrapping<u32>>

source§

impl CheckedCast<Wrapping<u32>> for u128

source§

fn checked_cast(self) -> Option<Wrapping<u32>>

source§

impl CheckedCast<Wrapping<u32>> for usize

source§

fn checked_cast(self) -> Option<Wrapping<u32>>

source§

impl CheckedCast<Wrapping<u64>> for bool

source§

fn checked_cast(self) -> Option<Wrapping<u64>>

source§

impl CheckedCast<Wrapping<u64>> for f32

source§

fn checked_cast(self) -> Option<Wrapping<u64>>

source§

impl CheckedCast<Wrapping<u64>> for f64

source§

fn checked_cast(self) -> Option<Wrapping<u64>>

source§

impl CheckedCast<Wrapping<u64>> for i8

source§

fn checked_cast(self) -> Option<Wrapping<u64>>

source§

impl CheckedCast<Wrapping<u64>> for i16

source§

fn checked_cast(self) -> Option<Wrapping<u64>>

source§

impl CheckedCast<Wrapping<u64>> for i32

source§

fn checked_cast(self) -> Option<Wrapping<u64>>

source§

impl CheckedCast<Wrapping<u64>> for i64

source§

fn checked_cast(self) -> Option<Wrapping<u64>>

source§

impl CheckedCast<Wrapping<u64>> for i128

source§

fn checked_cast(self) -> Option<Wrapping<u64>>

source§

impl CheckedCast<Wrapping<u64>> for isize

source§

fn checked_cast(self) -> Option<Wrapping<u64>>

source§

impl CheckedCast<Wrapping<u64>> for u8

source§

fn checked_cast(self) -> Option<Wrapping<u64>>

source§

impl CheckedCast<Wrapping<u64>> for u16

source§

fn checked_cast(self) -> Option<Wrapping<u64>>

source§

impl CheckedCast<Wrapping<u64>> for u32

source§

fn checked_cast(self) -> Option<Wrapping<u64>>

source§

impl CheckedCast<Wrapping<u64>> for u64

source§

fn checked_cast(self) -> Option<Wrapping<u64>>

source§

impl CheckedCast<Wrapping<u64>> for u128

source§

fn checked_cast(self) -> Option<Wrapping<u64>>

source§

impl CheckedCast<Wrapping<u64>> for usize

source§

fn checked_cast(self) -> Option<Wrapping<u64>>

source§

impl CheckedCast<Wrapping<u128>> for bool

source§

fn checked_cast(self) -> Option<Wrapping<u128>>

source§

impl CheckedCast<Wrapping<u128>> for f32

source§

fn checked_cast(self) -> Option<Wrapping<u128>>

source§

impl CheckedCast<Wrapping<u128>> for f64

source§

fn checked_cast(self) -> Option<Wrapping<u128>>

source§

impl CheckedCast<Wrapping<u128>> for i8

source§

fn checked_cast(self) -> Option<Wrapping<u128>>

source§

impl CheckedCast<Wrapping<u128>> for i16

source§

fn checked_cast(self) -> Option<Wrapping<u128>>

source§

impl CheckedCast<Wrapping<u128>> for i32

source§

fn checked_cast(self) -> Option<Wrapping<u128>>

source§

impl CheckedCast<Wrapping<u128>> for i64

source§

fn checked_cast(self) -> Option<Wrapping<u128>>

source§

impl CheckedCast<Wrapping<u128>> for i128

source§

fn checked_cast(self) -> Option<Wrapping<u128>>

source§

impl CheckedCast<Wrapping<u128>> for isize

source§

fn checked_cast(self) -> Option<Wrapping<u128>>

source§

impl CheckedCast<Wrapping<u128>> for u8

source§

fn checked_cast(self) -> Option<Wrapping<u128>>

source§

impl CheckedCast<Wrapping<u128>> for u16

source§

fn checked_cast(self) -> Option<Wrapping<u128>>

source§

impl CheckedCast<Wrapping<u128>> for u32

source§

fn checked_cast(self) -> Option<Wrapping<u128>>

source§

impl CheckedCast<Wrapping<u128>> for u64

source§

fn checked_cast(self) -> Option<Wrapping<u128>>

source§

impl CheckedCast<Wrapping<u128>> for u128

source§

fn checked_cast(self) -> Option<Wrapping<u128>>

source§

impl CheckedCast<Wrapping<u128>> for usize

source§

fn checked_cast(self) -> Option<Wrapping<u128>>

source§

impl CheckedCast<Wrapping<usize>> for bool

source§

fn checked_cast(self) -> Option<Wrapping<usize>>

source§

impl CheckedCast<Wrapping<usize>> for f32

source§

fn checked_cast(self) -> Option<Wrapping<usize>>

source§

impl CheckedCast<Wrapping<usize>> for f64

source§

fn checked_cast(self) -> Option<Wrapping<usize>>

source§

impl CheckedCast<Wrapping<usize>> for i8

source§

fn checked_cast(self) -> Option<Wrapping<usize>>

source§

impl CheckedCast<Wrapping<usize>> for i16

source§

fn checked_cast(self) -> Option<Wrapping<usize>>

source§

impl CheckedCast<Wrapping<usize>> for i32

source§

fn checked_cast(self) -> Option<Wrapping<usize>>

source§

impl CheckedCast<Wrapping<usize>> for i64

source§

fn checked_cast(self) -> Option<Wrapping<usize>>

source§

impl CheckedCast<Wrapping<usize>> for i128

source§

fn checked_cast(self) -> Option<Wrapping<usize>>

source§

impl CheckedCast<Wrapping<usize>> for isize

source§

fn checked_cast(self) -> Option<Wrapping<usize>>

source§

impl CheckedCast<Wrapping<usize>> for u8

source§

fn checked_cast(self) -> Option<Wrapping<usize>>

source§

impl CheckedCast<Wrapping<usize>> for u16

source§

fn checked_cast(self) -> Option<Wrapping<usize>>

source§

impl CheckedCast<Wrapping<usize>> for u32

source§

fn checked_cast(self) -> Option<Wrapping<usize>>

source§

impl CheckedCast<Wrapping<usize>> for u64

source§

fn checked_cast(self) -> Option<Wrapping<usize>>

source§

impl CheckedCast<Wrapping<usize>> for u128

source§

fn checked_cast(self) -> Option<Wrapping<usize>>

source§

impl CheckedCast<Wrapping<usize>> for usize

source§

fn checked_cast(self) -> Option<Wrapping<usize>>

source§

impl CheckedCast<f32> for f32

source§

fn checked_cast(self) -> Option<f32>

source§

impl CheckedCast<f32> for f64

source§

fn checked_cast(self) -> Option<f32>

source§

impl CheckedCast<f32> for i8

source§

fn checked_cast(self) -> Option<f32>

source§

impl CheckedCast<f32> for i16

source§

fn checked_cast(self) -> Option<f32>

source§

impl CheckedCast<f32> for i32

source§

fn checked_cast(self) -> Option<f32>

source§

impl CheckedCast<f32> for i64

source§

fn checked_cast(self) -> Option<f32>

source§

impl CheckedCast<f32> for i128

source§

fn checked_cast(self) -> Option<f32>

source§

impl CheckedCast<f32> for isize

source§

fn checked_cast(self) -> Option<f32>

source§

impl CheckedCast<f32> for u8

source§

fn checked_cast(self) -> Option<f32>

source§

impl CheckedCast<f32> for u16

source§

fn checked_cast(self) -> Option<f32>

source§

impl CheckedCast<f32> for u32

source§

fn checked_cast(self) -> Option<f32>

source§

impl CheckedCast<f32> for u64

source§

fn checked_cast(self) -> Option<f32>

source§

impl CheckedCast<f32> for u128

source§

fn checked_cast(self) -> Option<f32>

source§

impl CheckedCast<f32> for usize

source§

fn checked_cast(self) -> Option<f32>

source§

impl CheckedCast<f64> for f32

source§

fn checked_cast(self) -> Option<f64>

source§

impl CheckedCast<f64> for f64

source§

fn checked_cast(self) -> Option<f64>

source§

impl CheckedCast<f64> for i8

source§

fn checked_cast(self) -> Option<f64>

source§

impl CheckedCast<f64> for i16

source§

fn checked_cast(self) -> Option<f64>

source§

impl CheckedCast<f64> for i32

source§

fn checked_cast(self) -> Option<f64>

source§

impl CheckedCast<f64> for i64

source§

fn checked_cast(self) -> Option<f64>

source§

impl CheckedCast<f64> for i128

source§

fn checked_cast(self) -> Option<f64>

source§

impl CheckedCast<f64> for isize

source§

fn checked_cast(self) -> Option<f64>

source§

impl CheckedCast<f64> for u8

source§

fn checked_cast(self) -> Option<f64>

source§

impl CheckedCast<f64> for u16

source§

fn checked_cast(self) -> Option<f64>

source§

impl CheckedCast<f64> for u32

source§

fn checked_cast(self) -> Option<f64>

source§

impl CheckedCast<f64> for u64

source§

fn checked_cast(self) -> Option<f64>

source§

impl CheckedCast<f64> for u128

source§

fn checked_cast(self) -> Option<f64>

source§

impl CheckedCast<f64> for usize

source§

fn checked_cast(self) -> Option<f64>

source§

impl CheckedCast<i8> for bool

source§

fn checked_cast(self) -> Option<i8>

source§

impl CheckedCast<i8> for f32

source§

fn checked_cast(self) -> Option<i8>

source§

impl CheckedCast<i8> for f64

source§

fn checked_cast(self) -> Option<i8>

source§

impl CheckedCast<i8> for i8

source§

fn checked_cast(self) -> Option<i8>

source§

impl CheckedCast<i8> for i16

source§

fn checked_cast(self) -> Option<i8>

source§

impl CheckedCast<i8> for i32

source§

fn checked_cast(self) -> Option<i8>

source§

impl CheckedCast<i8> for i64

source§

fn checked_cast(self) -> Option<i8>

source§

impl CheckedCast<i8> for i128

source§

fn checked_cast(self) -> Option<i8>

source§

impl CheckedCast<i8> for isize

source§

fn checked_cast(self) -> Option<i8>

source§

impl CheckedCast<i8> for u8

source§

fn checked_cast(self) -> Option<i8>

source§

impl CheckedCast<i8> for u16

source§

fn checked_cast(self) -> Option<i8>

source§

impl CheckedCast<i8> for u32

source§

fn checked_cast(self) -> Option<i8>

source§

impl CheckedCast<i8> for u64

source§

fn checked_cast(self) -> Option<i8>

source§

impl CheckedCast<i8> for u128

source§

fn checked_cast(self) -> Option<i8>

source§

impl CheckedCast<i8> for usize

source§

fn checked_cast(self) -> Option<i8>

source§

impl CheckedCast<i16> for bool

source§

fn checked_cast(self) -> Option<i16>

source§

impl CheckedCast<i16> for f32

source§

fn checked_cast(self) -> Option<i16>

source§

impl CheckedCast<i16> for f64

source§

fn checked_cast(self) -> Option<i16>

source§

impl CheckedCast<i16> for i8

source§

fn checked_cast(self) -> Option<i16>

source§

impl CheckedCast<i16> for i16

source§

fn checked_cast(self) -> Option<i16>

source§

impl CheckedCast<i16> for i32

source§

fn checked_cast(self) -> Option<i16>

source§

impl CheckedCast<i16> for i64

source§

fn checked_cast(self) -> Option<i16>

source§

impl CheckedCast<i16> for i128

source§

fn checked_cast(self) -> Option<i16>

source§

impl CheckedCast<i16> for isize

source§

fn checked_cast(self) -> Option<i16>

source§

impl CheckedCast<i16> for u8

source§

fn checked_cast(self) -> Option<i16>

source§

impl CheckedCast<i16> for u16

source§

fn checked_cast(self) -> Option<i16>

source§

impl CheckedCast<i16> for u32

source§

fn checked_cast(self) -> Option<i16>

source§

impl CheckedCast<i16> for u64

source§

fn checked_cast(self) -> Option<i16>

source§

impl CheckedCast<i16> for u128

source§

fn checked_cast(self) -> Option<i16>

source§

impl CheckedCast<i16> for usize

source§

fn checked_cast(self) -> Option<i16>

source§

impl CheckedCast<i32> for bool

source§

fn checked_cast(self) -> Option<i32>

source§

impl CheckedCast<i32> for f32

source§

fn checked_cast(self) -> Option<i32>

source§

impl CheckedCast<i32> for f64

source§

fn checked_cast(self) -> Option<i32>

source§

impl CheckedCast<i32> for i8

source§

fn checked_cast(self) -> Option<i32>

source§

impl CheckedCast<i32> for i16

source§

fn checked_cast(self) -> Option<i32>

source§

impl CheckedCast<i32> for i32

source§

fn checked_cast(self) -> Option<i32>

source§

impl CheckedCast<i32> for i64

source§

fn checked_cast(self) -> Option<i32>

source§

impl CheckedCast<i32> for i128

source§

fn checked_cast(self) -> Option<i32>

source§

impl CheckedCast<i32> for isize

source§

fn checked_cast(self) -> Option<i32>

source§

impl CheckedCast<i32> for u8

source§

fn checked_cast(self) -> Option<i32>

source§

impl CheckedCast<i32> for u16

source§

fn checked_cast(self) -> Option<i32>

source§

impl CheckedCast<i32> for u32

source§

fn checked_cast(self) -> Option<i32>

source§

impl CheckedCast<i32> for u64

source§

fn checked_cast(self) -> Option<i32>

source§

impl CheckedCast<i32> for u128

source§

fn checked_cast(self) -> Option<i32>

source§

impl CheckedCast<i32> for usize

source§

fn checked_cast(self) -> Option<i32>

source§

impl CheckedCast<i64> for bool

source§

fn checked_cast(self) -> Option<i64>

source§

impl CheckedCast<i64> for f32

source§

fn checked_cast(self) -> Option<i64>

source§

impl CheckedCast<i64> for f64

source§

fn checked_cast(self) -> Option<i64>

source§

impl CheckedCast<i64> for i8

source§

fn checked_cast(self) -> Option<i64>

source§

impl CheckedCast<i64> for i16

source§

fn checked_cast(self) -> Option<i64>

source§

impl CheckedCast<i64> for i32

source§

fn checked_cast(self) -> Option<i64>

source§

impl CheckedCast<i64> for i64

source§

fn checked_cast(self) -> Option<i64>

source§

impl CheckedCast<i64> for i128

source§

fn checked_cast(self) -> Option<i64>

source§

impl CheckedCast<i64> for isize

source§

fn checked_cast(self) -> Option<i64>

source§

impl CheckedCast<i64> for u8

source§

fn checked_cast(self) -> Option<i64>

source§

impl CheckedCast<i64> for u16

source§

fn checked_cast(self) -> Option<i64>

source§

impl CheckedCast<i64> for u32

source§

fn checked_cast(self) -> Option<i64>

source§

impl CheckedCast<i64> for u64

source§

fn checked_cast(self) -> Option<i64>

source§

impl CheckedCast<i64> for u128

source§

fn checked_cast(self) -> Option<i64>

source§

impl CheckedCast<i64> for usize

source§

fn checked_cast(self) -> Option<i64>

source§

impl CheckedCast<i128> for bool

source§

fn checked_cast(self) -> Option<i128>

source§

impl CheckedCast<i128> for f32

source§

fn checked_cast(self) -> Option<i128>

source§

impl CheckedCast<i128> for f64

source§

fn checked_cast(self) -> Option<i128>

source§

impl CheckedCast<i128> for i8

source§

fn checked_cast(self) -> Option<i128>

source§

impl CheckedCast<i128> for i16

source§

fn checked_cast(self) -> Option<i128>

source§

impl CheckedCast<i128> for i32

source§

fn checked_cast(self) -> Option<i128>

source§

impl CheckedCast<i128> for i64

source§

fn checked_cast(self) -> Option<i128>

source§

impl CheckedCast<i128> for i128

source§

fn checked_cast(self) -> Option<i128>

source§

impl CheckedCast<i128> for isize

source§

fn checked_cast(self) -> Option<i128>

source§

impl CheckedCast<i128> for u8

source§

fn checked_cast(self) -> Option<i128>

source§

impl CheckedCast<i128> for u16

source§

fn checked_cast(self) -> Option<i128>

source§

impl CheckedCast<i128> for u32

source§

fn checked_cast(self) -> Option<i128>

source§

impl CheckedCast<i128> for u64

source§

fn checked_cast(self) -> Option<i128>

source§

impl CheckedCast<i128> for u128

source§

fn checked_cast(self) -> Option<i128>

source§

impl CheckedCast<i128> for usize

source§

fn checked_cast(self) -> Option<i128>

source§

impl CheckedCast<isize> for bool

source§

fn checked_cast(self) -> Option<isize>

source§

impl CheckedCast<isize> for f32

source§

fn checked_cast(self) -> Option<isize>

source§

impl CheckedCast<isize> for f64

source§

fn checked_cast(self) -> Option<isize>

source§

impl CheckedCast<isize> for i8

source§

fn checked_cast(self) -> Option<isize>

source§

impl CheckedCast<isize> for i16

source§

fn checked_cast(self) -> Option<isize>

source§

impl CheckedCast<isize> for i32

source§

fn checked_cast(self) -> Option<isize>

source§

impl CheckedCast<isize> for i64

source§

fn checked_cast(self) -> Option<isize>

source§

impl CheckedCast<isize> for i128

source§

fn checked_cast(self) -> Option<isize>

source§

impl CheckedCast<isize> for isize

source§

fn checked_cast(self) -> Option<isize>

source§

impl CheckedCast<isize> for u8

source§

fn checked_cast(self) -> Option<isize>

source§

impl CheckedCast<isize> for u16

source§

fn checked_cast(self) -> Option<isize>

source§

impl CheckedCast<isize> for u32

source§

fn checked_cast(self) -> Option<isize>

source§

impl CheckedCast<isize> for u64

source§

fn checked_cast(self) -> Option<isize>

source§

impl CheckedCast<isize> for u128

source§

fn checked_cast(self) -> Option<isize>

source§

impl CheckedCast<isize> for usize

source§

fn checked_cast(self) -> Option<isize>

source§

impl CheckedCast<u8> for bool

source§

fn checked_cast(self) -> Option<u8>

source§

impl CheckedCast<u8> for f32

source§

fn checked_cast(self) -> Option<u8>

source§

impl CheckedCast<u8> for f64

source§

fn checked_cast(self) -> Option<u8>

source§

impl CheckedCast<u8> for i8

source§

fn checked_cast(self) -> Option<u8>

source§

impl CheckedCast<u8> for i16

source§

fn checked_cast(self) -> Option<u8>

source§

impl CheckedCast<u8> for i32

source§

fn checked_cast(self) -> Option<u8>

source§

impl CheckedCast<u8> for i64

source§

fn checked_cast(self) -> Option<u8>

source§

impl CheckedCast<u8> for i128

source§

fn checked_cast(self) -> Option<u8>

source§

impl CheckedCast<u8> for isize

source§

fn checked_cast(self) -> Option<u8>

source§

impl CheckedCast<u8> for u8

source§

fn checked_cast(self) -> Option<u8>

source§

impl CheckedCast<u8> for u16

source§

fn checked_cast(self) -> Option<u8>

source§

impl CheckedCast<u8> for u32

source§

fn checked_cast(self) -> Option<u8>

source§

impl CheckedCast<u8> for u64

source§

fn checked_cast(self) -> Option<u8>

source§

impl CheckedCast<u8> for u128

source§

fn checked_cast(self) -> Option<u8>

source§

impl CheckedCast<u8> for usize

source§

fn checked_cast(self) -> Option<u8>

source§

impl CheckedCast<u16> for bool

source§

fn checked_cast(self) -> Option<u16>

source§

impl CheckedCast<u16> for f32

source§

fn checked_cast(self) -> Option<u16>

source§

impl CheckedCast<u16> for f64

source§

fn checked_cast(self) -> Option<u16>

source§

impl CheckedCast<u16> for i8

source§

fn checked_cast(self) -> Option<u16>

source§

impl CheckedCast<u16> for i16

source§

fn checked_cast(self) -> Option<u16>

source§

impl CheckedCast<u16> for i32

source§

fn checked_cast(self) -> Option<u16>

source§

impl CheckedCast<u16> for i64

source§

fn checked_cast(self) -> Option<u16>

source§

impl CheckedCast<u16> for i128

source§

fn checked_cast(self) -> Option<u16>

source§

impl CheckedCast<u16> for isize

source§

fn checked_cast(self) -> Option<u16>

source§

impl CheckedCast<u16> for u8

source§

fn checked_cast(self) -> Option<u16>

source§

impl CheckedCast<u16> for u16

source§

fn checked_cast(self) -> Option<u16>

source§

impl CheckedCast<u16> for u32

source§

fn checked_cast(self) -> Option<u16>

source§

impl CheckedCast<u16> for u64

source§

fn checked_cast(self) -> Option<u16>

source§

impl CheckedCast<u16> for u128

source§

fn checked_cast(self) -> Option<u16>

source§

impl CheckedCast<u16> for usize

source§

fn checked_cast(self) -> Option<u16>

source§

impl CheckedCast<u32> for bool

source§

fn checked_cast(self) -> Option<u32>

source§

impl CheckedCast<u32> for f32

source§

fn checked_cast(self) -> Option<u32>

source§

impl CheckedCast<u32> for f64

source§

fn checked_cast(self) -> Option<u32>

source§

impl CheckedCast<u32> for i8

source§

fn checked_cast(self) -> Option<u32>

source§

impl CheckedCast<u32> for i16

source§

fn checked_cast(self) -> Option<u32>

source§

impl CheckedCast<u32> for i32

source§

fn checked_cast(self) -> Option<u32>

source§

impl CheckedCast<u32> for i64

source§

fn checked_cast(self) -> Option<u32>

source§

impl CheckedCast<u32> for i128

source§

fn checked_cast(self) -> Option<u32>

source§

impl CheckedCast<u32> for isize

source§

fn checked_cast(self) -> Option<u32>

source§

impl CheckedCast<u32> for u8

source§

fn checked_cast(self) -> Option<u32>

source§

impl CheckedCast<u32> for u16

source§

fn checked_cast(self) -> Option<u32>

source§

impl CheckedCast<u32> for u32

source§

fn checked_cast(self) -> Option<u32>

source§

impl CheckedCast<u32> for u64

source§

fn checked_cast(self) -> Option<u32>

source§

impl CheckedCast<u32> for u128

source§

fn checked_cast(self) -> Option<u32>

source§

impl CheckedCast<u32> for usize

source§

fn checked_cast(self) -> Option<u32>

source§

impl CheckedCast<u64> for bool

source§

fn checked_cast(self) -> Option<u64>

source§

impl CheckedCast<u64> for f32

source§

fn checked_cast(self) -> Option<u64>

source§

impl CheckedCast<u64> for f64

source§

fn checked_cast(self) -> Option<u64>

source§

impl CheckedCast<u64> for i8

source§

fn checked_cast(self) -> Option<u64>

source§

impl CheckedCast<u64> for i16

source§

fn checked_cast(self) -> Option<u64>

source§

impl CheckedCast<u64> for i32

source§

fn checked_cast(self) -> Option<u64>

source§

impl CheckedCast<u64> for i64

source§

fn checked_cast(self) -> Option<u64>

source§

impl CheckedCast<u64> for i128

source§

fn checked_cast(self) -> Option<u64>

source§

impl CheckedCast<u64> for isize

source§

fn checked_cast(self) -> Option<u64>

source§

impl CheckedCast<u64> for u8

source§

fn checked_cast(self) -> Option<u64>

source§

impl CheckedCast<u64> for u16

source§

fn checked_cast(self) -> Option<u64>

source§

impl CheckedCast<u64> for u32

source§

fn checked_cast(self) -> Option<u64>

source§

impl CheckedCast<u64> for u64

source§

fn checked_cast(self) -> Option<u64>

source§

impl CheckedCast<u64> for u128

source§

fn checked_cast(self) -> Option<u64>

source§

impl CheckedCast<u64> for usize

source§

fn checked_cast(self) -> Option<u64>

source§

impl CheckedCast<u128> for bool

source§

fn checked_cast(self) -> Option<u128>

source§

impl CheckedCast<u128> for f32

source§

fn checked_cast(self) -> Option<u128>

source§

impl CheckedCast<u128> for f64

source§

fn checked_cast(self) -> Option<u128>

source§

impl CheckedCast<u128> for i8

source§

fn checked_cast(self) -> Option<u128>

source§

impl CheckedCast<u128> for i16

source§

fn checked_cast(self) -> Option<u128>

source§

impl CheckedCast<u128> for i32

source§

fn checked_cast(self) -> Option<u128>

source§

impl CheckedCast<u128> for i64

source§

fn checked_cast(self) -> Option<u128>

source§

impl CheckedCast<u128> for i128

source§

fn checked_cast(self) -> Option<u128>

source§

impl CheckedCast<u128> for isize

source§

fn checked_cast(self) -> Option<u128>

source§

impl CheckedCast<u128> for u8

source§

fn checked_cast(self) -> Option<u128>

source§

impl CheckedCast<u128> for u16

source§

fn checked_cast(self) -> Option<u128>

source§

impl CheckedCast<u128> for u32

source§

fn checked_cast(self) -> Option<u128>

source§

impl CheckedCast<u128> for u64

source§

fn checked_cast(self) -> Option<u128>

source§

impl CheckedCast<u128> for u128

source§

fn checked_cast(self) -> Option<u128>

source§

impl CheckedCast<u128> for usize

source§

fn checked_cast(self) -> Option<u128>

source§

impl CheckedCast<usize> for bool

source§

fn checked_cast(self) -> Option<usize>

source§

impl CheckedCast<usize> for f32

source§

fn checked_cast(self) -> Option<usize>

source§

impl CheckedCast<usize> for f64

source§

fn checked_cast(self) -> Option<usize>

source§

impl CheckedCast<usize> for i8

source§

fn checked_cast(self) -> Option<usize>

source§

impl CheckedCast<usize> for i16

source§

fn checked_cast(self) -> Option<usize>

source§

impl CheckedCast<usize> for i32

source§

fn checked_cast(self) -> Option<usize>

source§

impl CheckedCast<usize> for i64

source§

fn checked_cast(self) -> Option<usize>

source§

impl CheckedCast<usize> for i128

source§

fn checked_cast(self) -> Option<usize>

source§

impl CheckedCast<usize> for isize

source§

fn checked_cast(self) -> Option<usize>

source§

impl CheckedCast<usize> for u8

source§

fn checked_cast(self) -> Option<usize>

source§

impl CheckedCast<usize> for u16

source§

fn checked_cast(self) -> Option<usize>

source§

impl CheckedCast<usize> for u32

source§

fn checked_cast(self) -> Option<usize>

source§

impl CheckedCast<usize> for u64

source§

fn checked_cast(self) -> Option<usize>

source§

impl CheckedCast<usize> for u128

source§

fn checked_cast(self) -> Option<usize>

source§

impl CheckedCast<usize> for usize

source§

fn checked_cast(self) -> Option<usize>

Implementors§

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl CheckedCast<i8> for Round<f32>

source§

impl CheckedCast<i8> for Round<f64>

source§

impl CheckedCast<i16> for Round<f32>

source§

impl CheckedCast<i16> for Round<f64>

source§

impl CheckedCast<i32> for Round<f32>

source§

impl CheckedCast<i32> for Round<f64>

source§

impl CheckedCast<i64> for Round<f32>

source§

impl CheckedCast<i64> for Round<f64>

source§

impl CheckedCast<i128> for Round<f32>

source§

impl CheckedCast<i128> for Round<f64>

source§

impl CheckedCast<isize> for Round<f32>

source§

impl CheckedCast<isize> for Round<f64>

source§

impl CheckedCast<u8> for Round<f32>

source§

impl CheckedCast<u8> for Round<f64>

source§

impl CheckedCast<u16> for Round<f32>

source§

impl CheckedCast<u16> for Round<f64>

source§

impl CheckedCast<u32> for Round<f32>

source§

impl CheckedCast<u32> for Round<f64>

source§

impl CheckedCast<u64> for Round<f32>

source§

impl CheckedCast<u64> for Round<f64>

source§

impl CheckedCast<u128> for Round<f32>

source§

impl CheckedCast<u128> for Round<f64>

source§

impl CheckedCast<usize> for Round<f32>

source§

impl CheckedCast<usize> for Round<f64>