extendr_api::conversions::try_into_int

Trait FloatToInt

Source
pub(crate) trait FloatToInt<T: Sized> {
    // Required method
    fn try_into_int(&self) -> Result<T, ConversionError>
       where Self: Sized;
}

Required Methods§

Source

fn try_into_int(&self) -> Result<T, ConversionError>
where Self: Sized,

Implementations on Foreign Types§

Source§

impl FloatToInt<i8> for f64

Source§

impl FloatToInt<i16> for f64

Source§

impl FloatToInt<i32> for f64

Source§

impl FloatToInt<i64> for f64

Source§

impl FloatToInt<i128> for f64

Source§

impl FloatToInt<isize> for f64

Source§

impl FloatToInt<u8> for f64

Source§

impl FloatToInt<u16> for f64

Source§

impl FloatToInt<u32> for f64

Source§

impl FloatToInt<u64> for f64

Source§

impl FloatToInt<u128> for f64

Source§

impl FloatToInt<usize> for f64

Implementors§