icrate/generated/Foundation/
NSNull.rs1use crate::common::*;
4use crate::Foundation::*;
5
6extern_class!(
7 #[derive(Debug, PartialEq, Eq, Hash)]
8 #[cfg(feature = "Foundation_NSNull")]
9 pub struct NSNull;
10
11 #[cfg(feature = "Foundation_NSNull")]
12 unsafe impl ClassType for NSNull {
13 type Super = NSObject;
14 type Mutability = InteriorMutable;
15 }
16);
17
18#[cfg(feature = "Foundation_NSNull")]
19unsafe impl Send for NSNull {}
20
21#[cfg(feature = "Foundation_NSNull")]
22unsafe impl Sync for NSNull {}
23
24#[cfg(feature = "Foundation_NSNull")]
25unsafe impl NSCoding for NSNull {}
26
27#[cfg(feature = "Foundation_NSNull")]
28unsafe impl NSCopying for NSNull {}
29
30#[cfg(feature = "Foundation_NSNull")]
31unsafe impl NSObjectProtocol for NSNull {}
32
33#[cfg(feature = "Foundation_NSNull")]
34unsafe impl NSSecureCoding for NSNull {}
35
36extern_methods!(
37 #[cfg(feature = "Foundation_NSNull")]
38 unsafe impl NSNull {
39 #[method_id(@__retain_semantics Other null)]
40 pub unsafe fn null() -> Id<NSNull>;
41 }
42);
43
44extern_methods!(
45 #[cfg(feature = "Foundation_NSNull")]
47 unsafe impl NSNull {
48 #[method_id(@__retain_semantics Init init)]
49 pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
50
51 #[method_id(@__retain_semantics New new)]
52 pub unsafe fn new() -> Id<Self>;
53 }
54);