Skip to main content

ToInt32

Trait ToInt32 

Source
pub trait ToInt32 {
    // Required method
    fn to_int_32(&self) -> i32;
}
Expand description

Converts a 64-bit floating point number to an i32 according to the ToInt32 algorithm.

This is copied from Boa

Required Methods§

Source

fn to_int_32(&self) -> i32

Implementations on Foreign Types§

Source§

impl ToInt32 for f64

Source§

fn to_int_32(&self) -> i32

Implementors§