Rust library
to_bits
This is Rust standard-library source from the compiler version used in the run.
1240 #[rustc_const_stable(feature = "const_float_bits_conv", since = "1.83.0")]1241 #[inline]1242 #[allow(unnecessary_transmutes)]1243 pub const fn to_bits(self) -> u32 {1244 // SAFETY: `u32` is a plain old datatype so we can always transmute to it.1245 unsafe { mem::transmute(self) }1246 }Aeneas declaration
Aeneas generated this declaration for a Rust library operation. Any authored model recorded for this operation is shown below.
@[rust_fun "core::f32::{f32}::to_bits"]
axiom core.f32.F32.to_bits : F32 → Result Std.U32Source details
| Declaration | core.f32.F32.to_bits |
|---|---|
| File | /rustc/library/core/src/num/f32.rs |
| Lines | 1243:4–1243:37 |
| Program version | Preparation 1 |