objc2_core_data/generated/
NSCompositeAttributeDescription.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSAttributeDescription, NSPropertyDescription, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(all(feature = "NSAttributeDescription", feature = "NSPropertyDescription"))]
15 pub struct NSCompositeAttributeDescription;
16);
17
18#[cfg(all(feature = "NSAttributeDescription", feature = "NSPropertyDescription"))]
19extern_conformance!(
20 unsafe impl NSCoding for NSCompositeAttributeDescription {}
21);
22
23#[cfg(all(feature = "NSAttributeDescription", feature = "NSPropertyDescription"))]
24extern_conformance!(
25 unsafe impl NSCopying for NSCompositeAttributeDescription {}
26);
27
28#[cfg(all(feature = "NSAttributeDescription", feature = "NSPropertyDescription"))]
29unsafe impl CopyingHelper for NSCompositeAttributeDescription {
30 type Result = Self;
31}
32
33#[cfg(all(feature = "NSAttributeDescription", feature = "NSPropertyDescription"))]
34extern_conformance!(
35 unsafe impl NSObjectProtocol for NSCompositeAttributeDescription {}
36);
37
38#[cfg(all(feature = "NSAttributeDescription", feature = "NSPropertyDescription"))]
39impl NSCompositeAttributeDescription {
40 extern_methods!(
41 #[unsafe(method(elements))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn elements(&self) -> Retained<NSArray<NSAttributeDescription>>;
44
45 #[unsafe(method(setElements:))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn setElements(&self, elements: &NSArray<NSAttributeDescription>);
49 );
50}
51
52#[cfg(all(feature = "NSAttributeDescription", feature = "NSPropertyDescription"))]
54impl NSCompositeAttributeDescription {
55 extern_methods!(
56 #[unsafe(method(init))]
57 #[unsafe(method_family = init)]
58 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
59
60 #[unsafe(method(new))]
61 #[unsafe(method_family = new)]
62 pub unsafe fn new() -> Retained<Self>;
63 );
64}