FloatLiteralE

Trait FloatLiteralE 

Source
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§

Source

fn float_no_leading_digits() -> Self

Create a value indicating that a float literal contains no digits before the point.

Source

fn float_no_point() -> Self

Create a value indicating that a float literal contains no point.

Source

fn float_no_trailing_digits() -> Self

Create a value indicating that a float literal contains no digits after the point.

Source

fn float_no_exponent_digits() -> Self

Create a value indicating that a float literal contains no digits as the exponent.

Source

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.

Implementors§