Program Rust
pfe_empty
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
256 }257 258 #[inline]259 pub(super) fn pfe_empty() -> ParseFloatError {260 ParseFloatError { kind: FloatErrorKind::Empty }261 }262 263 // Used in unit tests, keep public.264 // 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 | 259:0–261:1 |
| Program version | Preparation 1 |