Trait FloatToInt

pub trait FloatToInt<Int>: Sized

Supporting trait for inherent methods of f32 and f64 such as to_int_unchecked. Typically doesn’t need to be used directly.

Required Methods

unsafe fn to_int_unchecked(self) -> Int
fn to_int_saturating(self) -> Int
fn to_int_checked(self) -> Option<Int>

Implementors