ICNPostalAddress

Trait ICNPostalAddress 

Source
pub trait ICNPostalAddress: PNSObject {
    // Provided methods
    fn p_street(&self) -> NSString { ... }
    fn p_city(&self) -> NSString { ... }
    fn p_state(&self) -> NSString { ... }
    fn p_postal_code(&self) -> NSString { ... }
    fn p_country(&self) -> NSString { ... }
    fn p_iso_country_code(&self) -> NSString { ... }
    fn p_sub_administrative_area(&self) -> NSString { ... }
    fn p_sub_locality(&self) -> NSString { ... }
}
Expand description

A trait containing all the methods for CNPostalAddress

Provided Methods§

Source

fn p_street(&self) -> NSString

The street name in a postal address.

Source

fn p_city(&self) -> NSString

The city name in a postal address.

Source

fn p_state(&self) -> NSString

The state name in a postal address.

Source

fn p_postal_code(&self) -> NSString

The postal code in a postal address.

Source

fn p_country(&self) -> NSString

The country or region name in a postal address.

Source

fn p_iso_country_code(&self) -> NSString

The ISO country code for the country or region in a postal address, using the ISO 3166-1 alpha-2 standard.

Source

fn p_sub_administrative_area(&self) -> NSString

The subadministrative area (such as a county or other region) in a postal address.

Source

fn p_sub_locality(&self) -> NSString

Additional information associated with the location, typically defined at the city or town level, in a postal address.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§