Rust library
to_bits
This is Rust standard-library source from the compiler version used in the run.
1046 #[unstable(feature = "f16", issue = "116909")]1047 #[must_use = "this returns the result of the operation, without modifying the original"]1048 #[allow(unnecessary_transmutes)]1049 pub const fn to_bits(self) -> u16 {1050 // SAFETY: `u16` is a plain old datatype so we can always transmute to it.1051 unsafe { mem::transmute(self) }1052 }Aeneas declaration
Aeneas generated this declaration for a Rust library operation. Any authored model recorded for this operation is shown below.
@[rust_fun "core::f16::{f16}::to_bits"]
axiom core.f16.F16.to_bits : F16 → Result Std.U16Source details
| Declaration | core.f16.F16.to_bits |
|---|---|
| File | /rustc/library/core/src/num/f16.rs |
| Lines | 1049:4–1049:37 |
| Program version | Preparation 1 |