pub trait FloatChecker<T: Float> {
    type Error;

    // Required method
    fn check(value: T) -> Result<(), Self::Error>;
}
Expand description

A property checker for a float type.

Required Associated Types§

source

type Error

A custom error resulting from a violated property check.

Required Methods§

source

fn check(value: T) -> Result<(), Self::Error>

Checks if a value satisfies a property.

Implementors§