icrate 0.0.1

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

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

    unsafe impl ClassType for NSGarbageCollector {
        type Super = NSObject;
    }
);

extern_methods!(
    unsafe impl NSGarbageCollector {
        #[method_id(@__retain_semantics Other defaultCollector)]
        pub unsafe fn defaultCollector() -> Id<Object, Shared>;

        #[method(isCollecting)]
        pub unsafe fn isCollecting(&self) -> bool;

        #[method(disable)]
        pub unsafe fn disable(&self);

        #[method(enable)]
        pub unsafe fn enable(&self);

        #[method(isEnabled)]
        pub unsafe fn isEnabled(&self) -> bool;

        #[method(collectIfNeeded)]
        pub unsafe fn collectIfNeeded(&self);

        #[method(collectExhaustively)]
        pub unsafe fn collectExhaustively(&self);

        #[method(disableCollectorForPointer:)]
        pub unsafe fn disableCollectorForPointer(&self, ptr: NonNull<c_void>);

        #[method(enableCollectorForPointer:)]
        pub unsafe fn enableCollectorForPointer(&self, ptr: NonNull<c_void>);

        #[method(zone)]
        pub unsafe fn zone(&self) -> NonNull<NSZone>;
    }
);