Source context

Program Rust

FloatErrorKind

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

15     }16 17     #[derive(Clone, PartialEq, Eq)]18     pub(super) enum FloatErrorKind {19         Empty,20         Invalid,21     }22 }23 24 pub use float_parse::ParseFloatError;

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[discriminant isize]
inductive num.float_parse.FloatErrorKind where
| Empty : num.float_parse.FloatErrorKind
| Invalid : num.float_parse.FloatErrorKind
Source details
Declarationnum.float_parse.FloatErrorKind
Filenum/mod.rs
Lines18:4–21:5
Program versionOriginal program