Skip to main content

GetPostalCodeValidator

Trait GetPostalCodeValidator 

Source
pub trait GetPostalCodeValidator {
    // Required method
    fn get_postal_code_validator(
        &self,
    ) -> Option<Box<dyn PostalCodeValidator + Send + Sync>>;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl GetPostalCodeValidator for Country

Source§

fn get_postal_code_validator( &self, ) -> Option<Box<dyn PostalCodeValidator + Send + Sync>>

Return a validator for the given country if supported.

Implementors§