pub trait Validator<T>: Display {
// Required method
fn check(&self, value: &T) -> bool;
}Expand description
Represents a validator to validate the input value.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".