pub fn float<'a, N, I, C>(neg: bool) -> impl Parser<I, Output = N> + 'a
Expand description
A floating point number.
This parser requires an integer part, but a decimal part and an exponent are optional.
If you want to apply different rules, you can implement it by yourself using compute_float()
helper function.
Also note that this function doesn’t support infinities and NaNs.