Skip to main content

NumericConstraint

Trait NumericConstraint 

Source
pub trait NumericConstraint {
    // Required methods
    fn validate_f64(&self, value: f64) -> ConstraintResult;
    fn name(&self) -> &'static str;
}
Expand description

Trait for validation constraints operating on numeric values

Required Methods§

Source

fn validate_f64(&self, value: f64) -> ConstraintResult

Source

fn name(&self) -> &'static str

Implementors§