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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToInt32 for f64

Source§

fn to_int_32(&self) -> i32

Implementors§