Trait BoundedCastFromInt
pub trait BoundedCastFromInt<T>: Sized
Conversion between integers, wrapping around or saturating at the target type's boundaries.
Required Methods
fn wrapping_cast_from(value: T) -> SelfConverts
valueto this type, wrapping around at the boundary of the type.fn saturating_cast_from(value: T) -> SelfConverts
valueto this type, saturating at the numeric bounds instead of overflowing.
Implementors
impl BoundedCastFromInt<i128> for i128impl BoundedCastFromInt<i128> for i16impl BoundedCastFromInt<i128> for i32impl BoundedCastFromInt<i128> for i64impl BoundedCastFromInt<i128> for i8impl BoundedCastFromInt<i128> for isizeimpl BoundedCastFromInt<i128> for u128impl BoundedCastFromInt<i128> for u16impl BoundedCastFromInt<i128> for u32impl BoundedCastFromInt<i128> for u64impl BoundedCastFromInt<i128> for u8impl BoundedCastFromInt<i128> for usizeimpl BoundedCastFromInt<i16> for i128impl BoundedCastFromInt<i16> for i16impl BoundedCastFromInt<i16> for i32impl BoundedCastFromInt<i16> for i64impl BoundedCastFromInt<i16> for i8impl BoundedCastFromInt<i16> for isizeimpl BoundedCastFromInt<i16> for u128impl BoundedCastFromInt<i16> for u16impl BoundedCastFromInt<i16> for u32impl BoundedCastFromInt<i16> for u64impl BoundedCastFromInt<i16> for u8impl BoundedCastFromInt<i16> for usizeimpl BoundedCastFromInt<i32> for i128impl BoundedCastFromInt<i32> for i16impl BoundedCastFromInt<i32> for i32impl BoundedCastFromInt<i32> for i64impl BoundedCastFromInt<i32> for i8impl BoundedCastFromInt<i32> for isizeimpl BoundedCastFromInt<i32> for u128impl BoundedCastFromInt<i32> for u16impl BoundedCastFromInt<i32> for u32impl BoundedCastFromInt<i32> for u64impl BoundedCastFromInt<i32> for u8impl BoundedCastFromInt<i32> for usizeimpl BoundedCastFromInt<i64> for i128impl BoundedCastFromInt<i64> for i16impl BoundedCastFromInt<i64> for i32impl BoundedCastFromInt<i64> for i64impl BoundedCastFromInt<i64> for i8impl BoundedCastFromInt<i64> for isizeimpl BoundedCastFromInt<i64> for u128impl BoundedCastFromInt<i64> for u16impl BoundedCastFromInt<i64> for u32impl BoundedCastFromInt<i64> for u64impl BoundedCastFromInt<i64> for u8impl BoundedCastFromInt<i64> for usizeimpl BoundedCastFromInt<i8> for i128impl BoundedCastFromInt<i8> for i16impl BoundedCastFromInt<i8> for i32impl BoundedCastFromInt<i8> for i64impl BoundedCastFromInt<i8> for i8impl BoundedCastFromInt<i8> for isizeimpl BoundedCastFromInt<i8> for u128impl BoundedCastFromInt<i8> for u16impl BoundedCastFromInt<i8> for u32impl BoundedCastFromInt<i8> for u64impl BoundedCastFromInt<i8> for u8impl BoundedCastFromInt<i8> for usizeimpl BoundedCastFromInt<isize> for i128impl BoundedCastFromInt<isize> for i16impl BoundedCastFromInt<isize> for i32impl BoundedCastFromInt<isize> for i64impl BoundedCastFromInt<isize> for i8impl BoundedCastFromInt<isize> for isizeimpl BoundedCastFromInt<isize> for u128impl BoundedCastFromInt<isize> for u16impl BoundedCastFromInt<isize> for u32impl BoundedCastFromInt<isize> for u64impl BoundedCastFromInt<isize> for u8impl BoundedCastFromInt<isize> for usizeimpl BoundedCastFromInt<u128> for i128impl BoundedCastFromInt<u128> for i16impl BoundedCastFromInt<u128> for i32impl BoundedCastFromInt<u128> for i64impl BoundedCastFromInt<u128> for i8impl BoundedCastFromInt<u128> for isizeimpl BoundedCastFromInt<u128> for u128impl BoundedCastFromInt<u128> for u16impl BoundedCastFromInt<u128> for u32impl BoundedCastFromInt<u128> for u64impl BoundedCastFromInt<u128> for u8impl BoundedCastFromInt<u128> for usizeimpl BoundedCastFromInt<u16> for i128impl BoundedCastFromInt<u16> for i16impl BoundedCastFromInt<u16> for i32impl BoundedCastFromInt<u16> for i64impl BoundedCastFromInt<u16> for i8impl BoundedCastFromInt<u16> for isizeimpl BoundedCastFromInt<u16> for u128impl BoundedCastFromInt<u16> for u16impl BoundedCastFromInt<u16> for u32impl BoundedCastFromInt<u16> for u64impl BoundedCastFromInt<u16> for u8impl BoundedCastFromInt<u16> for usizeimpl BoundedCastFromInt<u32> for i128impl BoundedCastFromInt<u32> for i16impl BoundedCastFromInt<u32> for i32impl BoundedCastFromInt<u32> for i64impl BoundedCastFromInt<u32> for i8impl BoundedCastFromInt<u32> for isizeimpl BoundedCastFromInt<u32> for u128impl BoundedCastFromInt<u32> for u16impl BoundedCastFromInt<u32> for u32impl BoundedCastFromInt<u32> for u64impl BoundedCastFromInt<u32> for u8impl BoundedCastFromInt<u32> for usizeimpl BoundedCastFromInt<u64> for i128impl BoundedCastFromInt<u64> for i16impl BoundedCastFromInt<u64> for i32impl BoundedCastFromInt<u64> for i64impl BoundedCastFromInt<u64> for i8impl BoundedCastFromInt<u64> for isizeimpl BoundedCastFromInt<u64> for u128impl BoundedCastFromInt<u64> for u16impl BoundedCastFromInt<u64> for u32impl BoundedCastFromInt<u64> for u64impl BoundedCastFromInt<u64> for u8impl BoundedCastFromInt<u64> for usizeimpl BoundedCastFromInt<u8> for i128impl BoundedCastFromInt<u8> for i16impl BoundedCastFromInt<u8> for i32impl BoundedCastFromInt<u8> for i64impl BoundedCastFromInt<u8> for i8impl BoundedCastFromInt<u8> for isizeimpl BoundedCastFromInt<u8> for u128impl BoundedCastFromInt<u8> for u16impl BoundedCastFromInt<u8> for u32impl BoundedCastFromInt<u8> for u64impl BoundedCastFromInt<u8> for u8impl BoundedCastFromInt<u8> for usizeimpl BoundedCastFromInt<usize> for i128impl BoundedCastFromInt<usize> for i16impl BoundedCastFromInt<usize> for i32impl BoundedCastFromInt<usize> for i64impl BoundedCastFromInt<usize> for i8impl BoundedCastFromInt<usize> for isizeimpl BoundedCastFromInt<usize> for u128impl BoundedCastFromInt<usize> for u16impl BoundedCastFromInt<usize> for u32impl BoundedCastFromInt<usize> for u64impl BoundedCastFromInt<usize> for u8impl BoundedCastFromInt<usize> for usize