Struct az::Round [−][src]
Used to convert floating-point numbers to integers with rounding to the nearest, with ties rounded to even.
The underlying value can be retrieved through the .0
index.
Examples
use az::Round; assert_eq!(az::cast::<_, i32>(Round(0.4)), 0); assert_eq!(az::cast::<_, i32>(Round(0.6)), 1); // ties rounded to even assert_eq!(az::cast::<_, i32>(Round(-0.5)), 0); assert_eq!(az::cast::<_, i32>(Round(-1.5)), -2);
Trait Implementations
impl Cast<Wrapping<i128>> for Round<f32>
[src]
impl Cast<Wrapping<i128>> for Round<f64>
[src]
impl Cast<Wrapping<i16>> for Round<f32>
[src]
impl Cast<Wrapping<i16>> for Round<f64>
[src]
impl Cast<Wrapping<i32>> for Round<f32>
[src]
impl Cast<Wrapping<i32>> for Round<f64>
[src]
impl Cast<Wrapping<i64>> for Round<f32>
[src]
impl Cast<Wrapping<i64>> for Round<f64>
[src]
impl Cast<Wrapping<i8>> for Round<f32>
[src]
impl Cast<Wrapping<i8>> for Round<f64>
[src]
impl Cast<Wrapping<isize>> for Round<f32>
[src]
impl Cast<Wrapping<isize>> for Round<f64>
[src]
impl Cast<Wrapping<u128>> for Round<f32>
[src]
impl Cast<Wrapping<u128>> for Round<f64>
[src]
impl Cast<Wrapping<u16>> for Round<f32>
[src]
impl Cast<Wrapping<u16>> for Round<f64>
[src]
impl Cast<Wrapping<u32>> for Round<f32>
[src]
impl Cast<Wrapping<u32>> for Round<f64>
[src]
impl Cast<Wrapping<u64>> for Round<f32>
[src]
impl Cast<Wrapping<u64>> for Round<f64>
[src]
impl Cast<Wrapping<u8>> for Round<f32>
[src]
impl Cast<Wrapping<u8>> for Round<f64>
[src]
impl Cast<Wrapping<usize>> for Round<f32>
[src]
impl Cast<Wrapping<usize>> for Round<f64>
[src]
impl Cast<i128> for Round<f32>
[src]
impl Cast<i128> for Round<f64>
[src]
impl Cast<i16> for Round<f32>
[src]
impl Cast<i16> for Round<f64>
[src]
impl Cast<i32> for Round<f32>
[src]
impl Cast<i32> for Round<f64>
[src]
impl Cast<i64> for Round<f32>
[src]
impl Cast<i64> for Round<f64>
[src]
impl Cast<i8> for Round<f32>
[src]
impl Cast<i8> for Round<f64>
[src]
impl Cast<isize> for Round<f32>
[src]
impl Cast<isize> for Round<f64>
[src]
impl Cast<u128> for Round<f32>
[src]
impl Cast<u128> for Round<f64>
[src]
impl Cast<u16> for Round<f32>
[src]
impl Cast<u16> for Round<f64>
[src]
impl Cast<u32> for Round<f32>
[src]
impl Cast<u32> for Round<f64>
[src]
impl Cast<u64> for Round<f32>
[src]
impl Cast<u64> for Round<f64>
[src]
impl Cast<u8> for Round<f32>
[src]
impl Cast<u8> for Round<f64>
[src]
impl Cast<usize> for Round<f32>
[src]
impl Cast<usize> for Round<f64>
[src]
impl CheckedCast<Wrapping<i128>> for Round<f32>
[src]
fn checked_cast(self) -> Option<Wrapping<i128>>
[src]
impl CheckedCast<Wrapping<i128>> for Round<f64>
[src]
fn checked_cast(self) -> Option<Wrapping<i128>>
[src]
impl CheckedCast<Wrapping<i16>> for Round<f32>
[src]
fn checked_cast(self) -> Option<Wrapping<i16>>
[src]
impl CheckedCast<Wrapping<i16>> for Round<f64>
[src]
fn checked_cast(self) -> Option<Wrapping<i16>>
[src]
impl CheckedCast<Wrapping<i32>> for Round<f32>
[src]
fn checked_cast(self) -> Option<Wrapping<i32>>
[src]
impl CheckedCast<Wrapping<i32>> for Round<f64>
[src]
fn checked_cast(self) -> Option<Wrapping<i32>>
[src]
impl CheckedCast<Wrapping<i64>> for Round<f32>
[src]
fn checked_cast(self) -> Option<Wrapping<i64>>
[src]
impl CheckedCast<Wrapping<i64>> for Round<f64>
[src]
fn checked_cast(self) -> Option<Wrapping<i64>>
[src]
impl CheckedCast<Wrapping<i8>> for Round<f32>
[src]
fn checked_cast(self) -> Option<Wrapping<i8>>
[src]
impl CheckedCast<Wrapping<i8>> for Round<f64>
[src]
fn checked_cast(self) -> Option<Wrapping<i8>>
[src]
impl CheckedCast<Wrapping<isize>> for Round<f32>
[src]
fn checked_cast(self) -> Option<Wrapping<isize>>
[src]
impl CheckedCast<Wrapping<isize>> for Round<f64>
[src]
fn checked_cast(self) -> Option<Wrapping<isize>>
[src]
impl CheckedCast<Wrapping<u128>> for Round<f32>
[src]
fn checked_cast(self) -> Option<Wrapping<u128>>
[src]
impl CheckedCast<Wrapping<u128>> for Round<f64>
[src]
fn checked_cast(self) -> Option<Wrapping<u128>>
[src]
impl CheckedCast<Wrapping<u16>> for Round<f32>
[src]
fn checked_cast(self) -> Option<Wrapping<u16>>
[src]
impl CheckedCast<Wrapping<u16>> for Round<f64>
[src]
fn checked_cast(self) -> Option<Wrapping<u16>>
[src]
impl CheckedCast<Wrapping<u32>> for Round<f32>
[src]
fn checked_cast(self) -> Option<Wrapping<u32>>
[src]
impl CheckedCast<Wrapping<u32>> for Round<f64>
[src]
fn checked_cast(self) -> Option<Wrapping<u32>>
[src]
impl CheckedCast<Wrapping<u64>> for Round<f32>
[src]
fn checked_cast(self) -> Option<Wrapping<u64>>
[src]
impl CheckedCast<Wrapping<u64>> for Round<f64>
[src]
fn checked_cast(self) -> Option<Wrapping<u64>>
[src]
impl CheckedCast<Wrapping<u8>> for Round<f32>
[src]
fn checked_cast(self) -> Option<Wrapping<u8>>
[src]
impl CheckedCast<Wrapping<u8>> for Round<f64>
[src]
fn checked_cast(self) -> Option<Wrapping<u8>>
[src]
impl CheckedCast<Wrapping<usize>> for Round<f32>
[src]
fn checked_cast(self) -> Option<Wrapping<usize>>
[src]
impl CheckedCast<Wrapping<usize>> for Round<f64>
[src]
fn checked_cast(self) -> Option<Wrapping<usize>>
[src]
impl CheckedCast<i128> for Round<f32>
[src]
fn checked_cast(self) -> Option<i128>
[src]
impl CheckedCast<i128> for Round<f64>
[src]
fn checked_cast(self) -> Option<i128>
[src]
impl CheckedCast<i16> for Round<f32>
[src]
fn checked_cast(self) -> Option<i16>
[src]
impl CheckedCast<i16> for Round<f64>
[src]
fn checked_cast(self) -> Option<i16>
[src]
impl CheckedCast<i32> for Round<f32>
[src]
fn checked_cast(self) -> Option<i32>
[src]
impl CheckedCast<i32> for Round<f64>
[src]
fn checked_cast(self) -> Option<i32>
[src]
impl CheckedCast<i64> for Round<f32>
[src]
fn checked_cast(self) -> Option<i64>
[src]
impl CheckedCast<i64> for Round<f64>
[src]
fn checked_cast(self) -> Option<i64>
[src]
impl CheckedCast<i8> for Round<f32>
[src]
fn checked_cast(self) -> Option<i8>
[src]
impl CheckedCast<i8> for Round<f64>
[src]
fn checked_cast(self) -> Option<i8>
[src]
impl CheckedCast<isize> for Round<f32>
[src]
fn checked_cast(self) -> Option<isize>
[src]
impl CheckedCast<isize> for Round<f64>
[src]
fn checked_cast(self) -> Option<isize>
[src]
impl CheckedCast<u128> for Round<f32>
[src]
fn checked_cast(self) -> Option<u128>
[src]
impl CheckedCast<u128> for Round<f64>
[src]
fn checked_cast(self) -> Option<u128>
[src]
impl CheckedCast<u16> for Round<f32>
[src]
fn checked_cast(self) -> Option<u16>
[src]
impl CheckedCast<u16> for Round<f64>
[src]
fn checked_cast(self) -> Option<u16>
[src]
impl CheckedCast<u32> for Round<f32>
[src]
fn checked_cast(self) -> Option<u32>
[src]
impl CheckedCast<u32> for Round<f64>
[src]
fn checked_cast(self) -> Option<u32>
[src]
impl CheckedCast<u64> for Round<f32>
[src]
fn checked_cast(self) -> Option<u64>
[src]
impl CheckedCast<u64> for Round<f64>
[src]
fn checked_cast(self) -> Option<u64>
[src]
impl CheckedCast<u8> for Round<f32>
[src]
fn checked_cast(self) -> Option<u8>
[src]
impl CheckedCast<u8> for Round<f64>
[src]
fn checked_cast(self) -> Option<u8>
[src]
impl CheckedCast<usize> for Round<f32>
[src]
fn checked_cast(self) -> Option<usize>
[src]
impl CheckedCast<usize> for Round<f64>
[src]
fn checked_cast(self) -> Option<usize>
[src]
impl<T: Clone> Clone for Round<T>
[src]
fn clone(&self) -> Round<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy> Copy for Round<T>
[src]
impl<T: Debug> Debug for Round<T>
[src]
impl<T: Default> Default for Round<T>
[src]
impl<T: Display> Display for Round<T>
[src]
impl<T: LowerExp> LowerExp for Round<T>
[src]
impl OverflowingCast<i128> for Round<f32>
[src]
fn overflowing_cast(self) -> (i128, bool)
[src]
impl OverflowingCast<i128> for Round<f64>
[src]
fn overflowing_cast(self) -> (i128, bool)
[src]
impl OverflowingCast<i16> for Round<f32>
[src]
fn overflowing_cast(self) -> (i16, bool)
[src]
impl OverflowingCast<i16> for Round<f64>
[src]
fn overflowing_cast(self) -> (i16, bool)
[src]
impl OverflowingCast<i32> for Round<f32>
[src]
fn overflowing_cast(self) -> (i32, bool)
[src]
impl OverflowingCast<i32> for Round<f64>
[src]
fn overflowing_cast(self) -> (i32, bool)
[src]
impl OverflowingCast<i64> for Round<f32>
[src]
fn overflowing_cast(self) -> (i64, bool)
[src]
impl OverflowingCast<i64> for Round<f64>
[src]
fn overflowing_cast(self) -> (i64, bool)
[src]
impl OverflowingCast<i8> for Round<f32>
[src]
fn overflowing_cast(self) -> (i8, bool)
[src]
impl OverflowingCast<i8> for Round<f64>
[src]
fn overflowing_cast(self) -> (i8, bool)
[src]
impl OverflowingCast<isize> for Round<f32>
[src]
fn overflowing_cast(self) -> (isize, bool)
[src]
impl OverflowingCast<isize> for Round<f64>
[src]
fn overflowing_cast(self) -> (isize, bool)
[src]
impl OverflowingCast<u128> for Round<f32>
[src]
fn overflowing_cast(self) -> (u128, bool)
[src]
impl OverflowingCast<u128> for Round<f64>
[src]
fn overflowing_cast(self) -> (u128, bool)
[src]
impl OverflowingCast<u16> for Round<f32>
[src]
fn overflowing_cast(self) -> (u16, bool)
[src]
impl OverflowingCast<u16> for Round<f64>
[src]
fn overflowing_cast(self) -> (u16, bool)
[src]
impl OverflowingCast<u32> for Round<f32>
[src]
fn overflowing_cast(self) -> (u32, bool)
[src]
impl OverflowingCast<u32> for Round<f64>
[src]
fn overflowing_cast(self) -> (u32, bool)
[src]
impl OverflowingCast<u64> for Round<f32>
[src]
fn overflowing_cast(self) -> (u64, bool)
[src]
impl OverflowingCast<u64> for Round<f64>
[src]
fn overflowing_cast(self) -> (u64, bool)
[src]
impl OverflowingCast<u8> for Round<f32>
[src]
fn overflowing_cast(self) -> (u8, bool)
[src]
impl OverflowingCast<u8> for Round<f64>
[src]
fn overflowing_cast(self) -> (u8, bool)
[src]
impl OverflowingCast<usize> for Round<f32>
[src]
fn overflowing_cast(self) -> (usize, bool)
[src]
impl OverflowingCast<usize> for Round<f64>
[src]
fn overflowing_cast(self) -> (usize, bool)
[src]
impl<T: PartialEq> PartialEq<Round<T>> for Round<T>
[src]
impl<T: PartialOrd> PartialOrd<Round<T>> for Round<T>
[src]
fn partial_cmp(&self, other: &Round<T>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl SaturatingCast<i128> for Round<f32>
[src]
fn saturating_cast(self) -> i128
[src]
impl SaturatingCast<i128> for Round<f64>
[src]
fn saturating_cast(self) -> i128
[src]
impl SaturatingCast<i16> for Round<f32>
[src]
fn saturating_cast(self) -> i16
[src]
impl SaturatingCast<i16> for Round<f64>
[src]
fn saturating_cast(self) -> i16
[src]
impl SaturatingCast<i32> for Round<f32>
[src]
fn saturating_cast(self) -> i32
[src]
impl SaturatingCast<i32> for Round<f64>
[src]
fn saturating_cast(self) -> i32
[src]
impl SaturatingCast<i64> for Round<f32>
[src]
fn saturating_cast(self) -> i64
[src]
impl SaturatingCast<i64> for Round<f64>
[src]
fn saturating_cast(self) -> i64
[src]
impl SaturatingCast<i8> for Round<f32>
[src]
fn saturating_cast(self) -> i8
[src]
impl SaturatingCast<i8> for Round<f64>
[src]
fn saturating_cast(self) -> i8
[src]
impl SaturatingCast<isize> for Round<f32>
[src]
fn saturating_cast(self) -> isize
[src]
impl SaturatingCast<isize> for Round<f64>
[src]
fn saturating_cast(self) -> isize
[src]
impl SaturatingCast<u128> for Round<f32>
[src]
fn saturating_cast(self) -> u128
[src]
impl SaturatingCast<u128> for Round<f64>
[src]
fn saturating_cast(self) -> u128
[src]
impl SaturatingCast<u16> for Round<f32>
[src]
fn saturating_cast(self) -> u16
[src]
impl SaturatingCast<u16> for Round<f64>
[src]
fn saturating_cast(self) -> u16
[src]
impl SaturatingCast<u32> for Round<f32>
[src]
fn saturating_cast(self) -> u32
[src]
impl SaturatingCast<u32> for Round<f64>
[src]
fn saturating_cast(self) -> u32
[src]
impl SaturatingCast<u64> for Round<f32>
[src]
fn saturating_cast(self) -> u64
[src]
impl SaturatingCast<u64> for Round<f64>
[src]
fn saturating_cast(self) -> u64
[src]
impl SaturatingCast<u8> for Round<f32>
[src]
fn saturating_cast(self) -> u8
[src]
impl SaturatingCast<u8> for Round<f64>
[src]
fn saturating_cast(self) -> u8
[src]
impl SaturatingCast<usize> for Round<f32>
[src]
fn saturating_cast(self) -> usize
[src]
impl SaturatingCast<usize> for Round<f64>
[src]
fn saturating_cast(self) -> usize
[src]
impl<T> StructuralPartialEq for Round<T>
[src]
impl UnwrappedCast<Wrapping<i128>> for Round<f32>
[src]
fn unwrapped_cast(self) -> Wrapping<i128>
[src]
impl UnwrappedCast<Wrapping<i128>> for Round<f64>
[src]
fn unwrapped_cast(self) -> Wrapping<i128>
[src]
impl UnwrappedCast<Wrapping<i16>> for Round<f32>
[src]
fn unwrapped_cast(self) -> Wrapping<i16>
[src]
impl UnwrappedCast<Wrapping<i16>> for Round<f64>
[src]
fn unwrapped_cast(self) -> Wrapping<i16>
[src]
impl UnwrappedCast<Wrapping<i32>> for Round<f32>
[src]
fn unwrapped_cast(self) -> Wrapping<i32>
[src]
impl UnwrappedCast<Wrapping<i32>> for Round<f64>
[src]
fn unwrapped_cast(self) -> Wrapping<i32>
[src]
impl UnwrappedCast<Wrapping<i64>> for Round<f32>
[src]
fn unwrapped_cast(self) -> Wrapping<i64>
[src]
impl UnwrappedCast<Wrapping<i64>> for Round<f64>
[src]
fn unwrapped_cast(self) -> Wrapping<i64>
[src]
impl UnwrappedCast<Wrapping<i8>> for Round<f32>
[src]
fn unwrapped_cast(self) -> Wrapping<i8>
[src]
impl UnwrappedCast<Wrapping<i8>> for Round<f64>
[src]
fn unwrapped_cast(self) -> Wrapping<i8>
[src]
impl UnwrappedCast<Wrapping<isize>> for Round<f32>
[src]
fn unwrapped_cast(self) -> Wrapping<isize>
[src]
impl UnwrappedCast<Wrapping<isize>> for Round<f64>
[src]
fn unwrapped_cast(self) -> Wrapping<isize>
[src]
impl UnwrappedCast<Wrapping<u128>> for Round<f32>
[src]
fn unwrapped_cast(self) -> Wrapping<u128>
[src]
impl UnwrappedCast<Wrapping<u128>> for Round<f64>
[src]
fn unwrapped_cast(self) -> Wrapping<u128>
[src]
impl UnwrappedCast<Wrapping<u16>> for Round<f32>
[src]
fn unwrapped_cast(self) -> Wrapping<u16>
[src]
impl UnwrappedCast<Wrapping<u16>> for Round<f64>
[src]
fn unwrapped_cast(self) -> Wrapping<u16>
[src]
impl UnwrappedCast<Wrapping<u32>> for Round<f32>
[src]
fn unwrapped_cast(self) -> Wrapping<u32>
[src]
impl UnwrappedCast<Wrapping<u32>> for Round<f64>
[src]
fn unwrapped_cast(self) -> Wrapping<u32>
[src]
impl UnwrappedCast<Wrapping<u64>> for Round<f32>
[src]
fn unwrapped_cast(self) -> Wrapping<u64>
[src]
impl UnwrappedCast<Wrapping<u64>> for Round<f64>
[src]
fn unwrapped_cast(self) -> Wrapping<u64>
[src]
impl UnwrappedCast<Wrapping<u8>> for Round<f32>
[src]
fn unwrapped_cast(self) -> Wrapping<u8>
[src]
impl UnwrappedCast<Wrapping<u8>> for Round<f64>
[src]
fn unwrapped_cast(self) -> Wrapping<u8>
[src]
impl UnwrappedCast<Wrapping<usize>> for Round<f32>
[src]
fn unwrapped_cast(self) -> Wrapping<usize>
[src]
impl UnwrappedCast<Wrapping<usize>> for Round<f64>
[src]
fn unwrapped_cast(self) -> Wrapping<usize>
[src]
impl UnwrappedCast<i128> for Round<f32>
[src]
fn unwrapped_cast(self) -> i128
[src]
impl UnwrappedCast<i128> for Round<f64>
[src]
fn unwrapped_cast(self) -> i128
[src]
impl UnwrappedCast<i16> for Round<f32>
[src]
fn unwrapped_cast(self) -> i16
[src]
impl UnwrappedCast<i16> for Round<f64>
[src]
fn unwrapped_cast(self) -> i16
[src]
impl UnwrappedCast<i32> for Round<f32>
[src]
fn unwrapped_cast(self) -> i32
[src]
impl UnwrappedCast<i32> for Round<f64>
[src]
fn unwrapped_cast(self) -> i32
[src]
impl UnwrappedCast<i64> for Round<f32>
[src]
fn unwrapped_cast(self) -> i64
[src]
impl UnwrappedCast<i64> for Round<f64>
[src]
fn unwrapped_cast(self) -> i64
[src]
impl UnwrappedCast<i8> for Round<f32>
[src]
fn unwrapped_cast(self) -> i8
[src]
impl UnwrappedCast<i8> for Round<f64>
[src]
fn unwrapped_cast(self) -> i8
[src]
impl UnwrappedCast<isize> for Round<f32>
[src]
fn unwrapped_cast(self) -> isize
[src]
impl UnwrappedCast<isize> for Round<f64>
[src]
fn unwrapped_cast(self) -> isize
[src]
impl UnwrappedCast<u128> for Round<f32>
[src]
fn unwrapped_cast(self) -> u128
[src]
impl UnwrappedCast<u128> for Round<f64>
[src]
fn unwrapped_cast(self) -> u128
[src]
impl UnwrappedCast<u16> for Round<f32>
[src]
fn unwrapped_cast(self) -> u16
[src]
impl UnwrappedCast<u16> for Round<f64>
[src]
fn unwrapped_cast(self) -> u16
[src]
impl UnwrappedCast<u32> for Round<f32>
[src]
fn unwrapped_cast(self) -> u32
[src]
impl UnwrappedCast<u32> for Round<f64>
[src]
fn unwrapped_cast(self) -> u32
[src]
impl UnwrappedCast<u64> for Round<f32>
[src]
fn unwrapped_cast(self) -> u64
[src]
impl UnwrappedCast<u64> for Round<f64>
[src]
fn unwrapped_cast(self) -> u64
[src]
impl UnwrappedCast<u8> for Round<f32>
[src]
fn unwrapped_cast(self) -> u8
[src]
impl UnwrappedCast<u8> for Round<f64>
[src]
fn unwrapped_cast(self) -> u8
[src]
impl UnwrappedCast<usize> for Round<f32>
[src]
fn unwrapped_cast(self) -> usize
[src]
impl UnwrappedCast<usize> for Round<f64>
[src]
fn unwrapped_cast(self) -> usize
[src]
impl<T: UpperExp> UpperExp for Round<T>
[src]
impl WrappingCast<i128> for Round<f32>
[src]
fn wrapping_cast(self) -> i128
[src]
impl WrappingCast<i128> for Round<f64>
[src]
fn wrapping_cast(self) -> i128
[src]
impl WrappingCast<i16> for Round<f32>
[src]
fn wrapping_cast(self) -> i16
[src]
impl WrappingCast<i16> for Round<f64>
[src]
fn wrapping_cast(self) -> i16
[src]
impl WrappingCast<i32> for Round<f32>
[src]
fn wrapping_cast(self) -> i32
[src]
impl WrappingCast<i32> for Round<f64>
[src]
fn wrapping_cast(self) -> i32
[src]
impl WrappingCast<i64> for Round<f32>
[src]
fn wrapping_cast(self) -> i64
[src]
impl WrappingCast<i64> for Round<f64>
[src]
fn wrapping_cast(self) -> i64
[src]
impl WrappingCast<i8> for Round<f32>
[src]
fn wrapping_cast(self) -> i8
[src]
impl WrappingCast<i8> for Round<f64>
[src]
fn wrapping_cast(self) -> i8
[src]
impl WrappingCast<isize> for Round<f32>
[src]
fn wrapping_cast(self) -> isize
[src]
impl WrappingCast<isize> for Round<f64>
[src]
fn wrapping_cast(self) -> isize
[src]
impl WrappingCast<u128> for Round<f32>
[src]
fn wrapping_cast(self) -> u128
[src]
impl WrappingCast<u128> for Round<f64>
[src]
fn wrapping_cast(self) -> u128
[src]
impl WrappingCast<u16> for Round<f32>
[src]
fn wrapping_cast(self) -> u16
[src]
impl WrappingCast<u16> for Round<f64>
[src]
fn wrapping_cast(self) -> u16
[src]
impl WrappingCast<u32> for Round<f32>
[src]
fn wrapping_cast(self) -> u32
[src]
impl WrappingCast<u32> for Round<f64>
[src]
fn wrapping_cast(self) -> u32
[src]
impl WrappingCast<u64> for Round<f32>
[src]
fn wrapping_cast(self) -> u64
[src]
impl WrappingCast<u64> for Round<f64>
[src]
fn wrapping_cast(self) -> u64
[src]
impl WrappingCast<u8> for Round<f32>
[src]
fn wrapping_cast(self) -> u8
[src]
impl WrappingCast<u8> for Round<f64>
[src]
fn wrapping_cast(self) -> u8
[src]
impl WrappingCast<usize> for Round<f32>
[src]
fn wrapping_cast(self) -> usize
[src]
impl WrappingCast<usize> for Round<f64>
[src]
fn wrapping_cast(self) -> usize
[src]
Auto Trait Implementations
impl<T> Send for Round<T> where
T: Send,
T: Send,
impl<T> Sync for Round<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Round<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Az for T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedAs for T
[src]
pub fn checked_as<Dst>(Self) -> Option<Dst> where
T: CheckedCast<Dst>,
[src]
T: CheckedCast<Dst>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> OverflowingAs for T
[src]
pub fn overflowing_as<Dst>(Self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
[src]
T: OverflowingCast<Dst>,
impl<T> SaturatingAs for T
[src]
pub fn saturating_as<Dst>(Self) -> Dst where
T: SaturatingCast<Dst>,
[src]
T: SaturatingCast<Dst>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnwrappedAs for T
[src]
pub fn unwrapped_as<Dst>(Self) -> Dst where
T: UnwrappedCast<Dst>,
[src]
T: UnwrappedCast<Dst>,
impl<T> WrappingAs for T
[src]
pub fn wrapping_as<Dst>(Self) -> Dst where
T: WrappingCast<Dst>,
[src]
T: WrappingCast<Dst>,