objc2-foundation 0.2.2

Bindings to the Foundation framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;

use crate::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct NSNull;

    unsafe impl ClassType for NSNull {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

unsafe impl Send for NSNull {}

unsafe impl Sync for NSNull {}

#[cfg(feature = "NSObject")]
unsafe impl NSCoding for NSNull {}

#[cfg(feature = "NSObject")]
unsafe impl NSCopying for NSNull {}

unsafe impl NSObjectProtocol for NSNull {}

#[cfg(feature = "NSObject")]
unsafe impl NSSecureCoding for NSNull {}

extern_methods!(
    unsafe impl NSNull {
        #[method_id(@__retain_semantics Other null)]
        pub unsafe fn null() -> Retained<NSNull>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    unsafe impl NSNull {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Retained<Self>;
    }
);