pub trait FloatLiteralE: Eoi {
// Required methods
fn float_no_leading_digits() -> Self;
fn float_no_point() -> Self;
fn float_no_trailing_digits() -> Self;
fn float_no_exponent_digits() -> Self;
fn not_float_literal() -> Self;
}Expand description
A trait for error types that can represent errors occurring when parsing an integer literal.
Required Methods§
Sourcefn float_no_leading_digits() -> Self
fn float_no_leading_digits() -> Self
Create a value indicating that a float literal contains no digits before the point.
Sourcefn float_no_point() -> Self
fn float_no_point() -> Self
Create a value indicating that a float literal contains no point.
Sourcefn float_no_trailing_digits() -> Self
fn float_no_trailing_digits() -> Self
Create a value indicating that a float literal contains no digits after the point.
Sourcefn float_no_exponent_digits() -> Self
fn float_no_exponent_digits() -> Self
Create a value indicating that a float literal contains no digits as the exponent.
Sourcefn not_float_literal() -> Self
fn not_float_literal() -> Self
Create a value indicating that the input does not contain (even the beginning of) a float literal.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.