pub trait FloatChecker<F> {
// Required methods
fn check(value: F) -> bool;
fn assert(value: F);
}
Expand description
Trait for checking whether a floating point number is valid.
The implementation defines its own criteria for what constitutes a valid value.
Required Methods§
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.