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:))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn setElements(&self, elements: &NSArray<NSAttributeDescription>);
51 );
52}
53
54#[cfg(all(feature = "NSAttributeDescription", feature = "NSPropertyDescription"))]
56impl NSCompositeAttributeDescription {
57 extern_methods!(
58 #[unsafe(method(init))]
59 #[unsafe(method_family = init)]
60 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
61
62 #[unsafe(method(new))]
63 #[unsafe(method_family = new)]
64 pub unsafe fn new() -> Retained<Self>;
65 );
66}