Rust library
clone
This is Rust standard-library source from the compiler version used in the run.
695 #[rustc_const_unstable(feature = "const_clone", issue = "142757")]696 impl const Clone for $t {697 #[inline(always)]698 fn clone(&self) -> Self {699 *self700 }701 }Aeneas declaration
Aeneas generated this declaration for a Rust library operation. Any authored model recorded for this operation is shown below.
@[rust_fun "core::clone::impls::{core::clone::Clone<f64>}::clone"]
axiom F64.Insts.CoreCloneClone.clone : F64 → Result F64Authored Lean model
Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.
import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64Clone]
def ModelF64Clone : F64 -> Result F64 :=
-- BODY
Binary64ModelDefault.clone
end dec2flt_model
Source details
| Declaration | F64.Insts.CoreCloneClone.clone |
|---|---|
| File | /rustc/library/core/src/clone.rs |
| Lines | 698:20–698:43 |
| Program version | Original program |