W3cubDocs

/Rust

Function std::intrinsics::float_to_int_unchecked

pub unsafe extern "rust-intrinsic" fn float_to_int_unchecked<Float, Int>(    value: Float) -> Int where    Float: Copy,    Int: Copy, 
🔬 This is a nightly-only experimental API. (core_intrinsics)intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library

Convert with LLVM’s fptoui/fptosi, which may return undef for values out of range (https://github.com/rust-lang/rust/issues/10184)

Stabilized as f32::to_int_unchecked and f64::to_int_unchecked.

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/intrinsics/fn.float_to_int_unchecked.html