objc2_photos/generated/
PHObject.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 pub struct PHObject;
14);
15
16unsafe impl Send for PHObject {}
17
18unsafe impl Sync for PHObject {}
19
20extern_conformance!(
21 unsafe impl NSCopying for PHObject {}
22);
23
24unsafe impl CopyingHelper for PHObject {
25 type Result = Self;
26}
27
28extern_conformance!(
29 unsafe impl NSObjectProtocol for PHObject {}
30);
31
32impl PHObject {
33 extern_methods!(
34 #[unsafe(method(localIdentifier))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn localIdentifier(&self) -> Retained<NSString>;
42 );
43}
44
45impl PHObject {
47 extern_methods!(
48 #[unsafe(method(init))]
49 #[unsafe(method_family = init)]
50 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
51
52 #[unsafe(method(new))]
53 #[unsafe(method_family = new)]
54 pub unsafe fn new() -> Retained<Self>;
55 );
56}
57
58extern_class!(
59 #[unsafe(super(PHObject, NSObject))]
61 #[derive(Debug, PartialEq, Eq, Hash)]
62 pub struct PHObjectPlaceholder;
63);
64
65unsafe impl Send for PHObjectPlaceholder {}
66
67unsafe impl Sync for PHObjectPlaceholder {}
68
69extern_conformance!(
70 unsafe impl NSCopying for PHObjectPlaceholder {}
71);
72
73unsafe impl CopyingHelper for PHObjectPlaceholder {
74 type Result = Self;
75}
76
77extern_conformance!(
78 unsafe impl NSObjectProtocol for PHObjectPlaceholder {}
79);
80
81impl PHObjectPlaceholder {
82 extern_methods!();
83}
84
85impl PHObjectPlaceholder {
87 extern_methods!(
88 #[unsafe(method(init))]
89 #[unsafe(method_family = init)]
90 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
91
92 #[unsafe(method(new))]
93 #[unsafe(method_family = new)]
94 pub unsafe fn new() -> Retained<Self>;
95 );
96}