pub trait PostalCodeValidator {
// Required method
fn validate(&self, code: &str) -> bool;
}Expand description
Trait that all country-specific postal code validators must implement.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".