objc2_core_data/generated/
NSDerivedAttributeDescription.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 NSDerivedAttributeDescription;
16);
17
18#[cfg(all(feature = "NSAttributeDescription", feature = "NSPropertyDescription"))]
19extern_conformance!(
20 unsafe impl NSCoding for NSDerivedAttributeDescription {}
21);
22
23#[cfg(all(feature = "NSAttributeDescription", feature = "NSPropertyDescription"))]
24extern_conformance!(
25 unsafe impl NSCopying for NSDerivedAttributeDescription {}
26);
27
28#[cfg(all(feature = "NSAttributeDescription", feature = "NSPropertyDescription"))]
29unsafe impl CopyingHelper for NSDerivedAttributeDescription {
30 type Result = Self;
31}
32
33#[cfg(all(feature = "NSAttributeDescription", feature = "NSPropertyDescription"))]
34extern_conformance!(
35 unsafe impl NSObjectProtocol for NSDerivedAttributeDescription {}
36);
37
38#[cfg(all(feature = "NSAttributeDescription", feature = "NSPropertyDescription"))]
39impl NSDerivedAttributeDescription {
40 extern_methods!(
41 #[unsafe(method(derivationExpression))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn derivationExpression(&self) -> Option<Retained<NSExpression>>;
44
45 #[unsafe(method(setDerivationExpression:))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn setDerivationExpression(&self, derivation_expression: Option<&NSExpression>);
49 );
50}
51
52#[cfg(all(feature = "NSAttributeDescription", feature = "NSPropertyDescription"))]
54impl NSDerivedAttributeDescription {
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}