float_to_int_unchecked
float_to_int_unchecked (검사 없는 부동소수점-정수 변환)
LLVM 의 fptoui/fptosi 로 변환하는 내장 함수예요.
출처: Rust 공식 문서
본문
LLVM 의 fptoui/fptosi 로 변환하며, 범위를 벗어난 값에 대해서는 undef 를 반환할 수 있어요. f32::to_int_unchecked 와 f64::to_int_unchecked 로 안정화됐어요.
pub unsafe fn float_to_int_unchecked<Float, Int>(value: Float) -> Int where Float: FloatPrimitive, Int: Copy ,