objc2_foundation/generated/
NSTermOfAddress.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9 #[unsafe(super(NSObject))]
11 #[derive(Debug, PartialEq, Eq, Hash)]
12 pub struct NSTermOfAddress;
13);
14
15#[cfg(feature = "NSObject")]
16extern_conformance!(
17 unsafe impl NSCoding for NSTermOfAddress {}
18);
19
20#[cfg(feature = "NSObject")]
21extern_conformance!(
22 unsafe impl NSCopying for NSTermOfAddress {}
23);
24
25#[cfg(feature = "NSObject")]
26unsafe impl CopyingHelper for NSTermOfAddress {
27 type Result = Self;
28}
29
30extern_conformance!(
31 unsafe impl NSObjectProtocol for NSTermOfAddress {}
32);
33
34#[cfg(feature = "NSObject")]
35extern_conformance!(
36 unsafe impl NSSecureCoding for NSTermOfAddress {}
37);
38
39impl NSTermOfAddress {
40 extern_methods!(
41 #[unsafe(method(neutral))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn neutral() -> Retained<Self>;
47
48 #[unsafe(method(feminine))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn feminine() -> Retained<Self>;
54
55 #[unsafe(method(masculine))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn masculine() -> Retained<Self>;
61
62 #[unsafe(method(currentUser))]
66 #[unsafe(method_family = none)]
67 pub unsafe fn currentUser() -> Retained<Self>;
68
69 #[cfg(all(feature = "NSArray", feature = "NSMorphology", feature = "NSString"))]
70 #[unsafe(method(localizedForLanguageIdentifier:withPronouns:))]
77 #[unsafe(method_family = none)]
78 pub unsafe fn localizedForLanguageIdentifier_withPronouns(
79 language: &NSString,
80 pronouns: &NSArray<NSMorphologyPronoun>,
81 ) -> Retained<Self>;
82
83 #[unsafe(method(new))]
84 #[unsafe(method_family = new)]
85 pub unsafe fn new() -> Retained<Self>;
86
87 #[unsafe(method(init))]
88 #[unsafe(method_family = init)]
89 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
90
91 #[cfg(feature = "NSString")]
92 #[unsafe(method(languageIdentifier))]
94 #[unsafe(method_family = none)]
95 pub unsafe fn languageIdentifier(&self) -> Option<Retained<NSString>>;
96
97 #[cfg(all(feature = "NSArray", feature = "NSMorphology"))]
98 #[unsafe(method(pronouns))]
100 #[unsafe(method_family = none)]
101 pub unsafe fn pronouns(&self) -> Option<Retained<NSArray<NSMorphologyPronoun>>>;
102 );
103}