Program Rust
pfe_empty
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
264 }265 266 #[inline]267 pub(super) fn pfe_empty() -> ParseFloatError {268 ParseFloatError { kind: FloatErrorKind::Empty }269 }270 271 // Used in unit tests, keep public.272 // This is much better than making FloatErrorKind and ParseFloatError::kind public.Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
def num.imp.dec2flt.pfe_empty : Result num.float_parse.ParseFloatError := do
ok { kind := num.float_parse.FloatErrorKind.Empty }Operations used here
Source details
| Declaration | num.imp.dec2flt.pfe_empty |
|---|---|
| File | num/imp/../../dec2flt/mod.rs |
| Lines | 267:0–269:1 |
| Program version | Preparation 2 |