icrate 0.1.2

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::Foundation::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Foundation_NSTermOfAddress")]
    pub struct NSTermOfAddress;

    #[cfg(feature = "Foundation_NSTermOfAddress")]
    unsafe impl ClassType for NSTermOfAddress {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Foundation_NSTermOfAddress")]
unsafe impl NSCoding for NSTermOfAddress {}

#[cfg(feature = "Foundation_NSTermOfAddress")]
unsafe impl NSCopying for NSTermOfAddress {}

#[cfg(feature = "Foundation_NSTermOfAddress")]
unsafe impl NSObjectProtocol for NSTermOfAddress {}

#[cfg(feature = "Foundation_NSTermOfAddress")]
unsafe impl NSSecureCoding for NSTermOfAddress {}

extern_methods!(
    #[cfg(feature = "Foundation_NSTermOfAddress")]
    unsafe impl NSTermOfAddress {
        #[method_id(@__retain_semantics Other neutral)]
        pub unsafe fn neutral() -> Id<Self>;

        #[method_id(@__retain_semantics Other feminine)]
        pub unsafe fn feminine() -> Id<Self>;

        #[method_id(@__retain_semantics Other masculine)]
        pub unsafe fn masculine() -> Id<Self>;

        #[cfg(all(
            feature = "Foundation_NSArray",
            feature = "Foundation_NSMorphologyPronoun",
            feature = "Foundation_NSString"
        ))]
        #[method_id(@__retain_semantics Other localizedForLanguageIdentifier:withPronouns:)]
        pub unsafe fn localizedForLanguageIdentifier_withPronouns(
            language: &NSString,
            pronouns: &NSArray<NSMorphologyPronoun>,
        ) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;

        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other languageIdentifier)]
        pub unsafe fn languageIdentifier(&self) -> Option<Id<NSString>>;

        #[cfg(all(
            feature = "Foundation_NSArray",
            feature = "Foundation_NSMorphologyPronoun"
        ))]
        #[method_id(@__retain_semantics Other pronouns)]
        pub unsafe fn pronouns(&self) -> Option<Id<NSArray<NSMorphologyPronoun>>>;
    }
);