Source context

Program Rust

ParseFloatError

This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.

10     // Removing only the formatting implementation leaves the error shape and11     // all parser operations/derives unchanged, independently of GOAL truth.12     #[derive(Clone, PartialEq, Eq)]13     pub struct ParseFloatError {14         pub(super) kind: FloatErrorKind,15     }16 17     #[derive(Clone, PartialEq, Eq)]18     pub(super) enum FloatErrorKind {

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

structure num.float_parse.ParseFloatError where
  kind : num.float_parse.FloatErrorKind
Operations used here

FloatErrorKind · Program Rust

Source details
Declarationnum.float_parse.ParseFloatError
Filenum/mod.rs
Lines13:4–15:5
Program versionOriginal program