objc2_foundation/generated/
NSNull.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 NSNull;
13);
14
15unsafe impl Send for NSNull {}
16
17unsafe impl Sync for NSNull {}
18
19#[cfg(feature = "NSObject")]
20unsafe impl NSCoding for NSNull {}
21
22#[cfg(feature = "NSObject")]
23unsafe impl NSCopying for NSNull {}
24
25#[cfg(feature = "NSObject")]
26unsafe impl CopyingHelper for NSNull {
27 type Result = Self;
28}
29
30unsafe impl NSObjectProtocol for NSNull {}
31
32#[cfg(feature = "NSObject")]
33unsafe impl NSSecureCoding for NSNull {}
34
35impl NSNull {
36 extern_methods!(
37 #[unsafe(method(null))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn null() -> Retained<NSNull>;
40 );
41}
42
43impl NSNull {
45 extern_methods!(
46 #[unsafe(method(init))]
47 #[unsafe(method_family = init)]
48 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
49
50 #[unsafe(method(new))]
51 #[unsafe(method_family = new)]
52 pub unsafe fn new() -> Retained<Self>;
53 );
54}