icrate 0.1.2

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::AppKit::*;
use crate::CoreLocation::*;
use crate::Foundation::*;
use crate::PhotoKit::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "PhotoKit_PHPersistentChangeFetchResult")]
    pub struct PHPersistentChangeFetchResult;

    #[cfg(feature = "PhotoKit_PHPersistentChangeFetchResult")]
    unsafe impl ClassType for PHPersistentChangeFetchResult {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "PhotoKit_PHPersistentChangeFetchResult")]
unsafe impl NSObjectProtocol for PHPersistentChangeFetchResult {}

extern_methods!(
    #[cfg(feature = "PhotoKit_PHPersistentChangeFetchResult")]
    unsafe impl PHPersistentChangeFetchResult {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;

        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[cfg(feature = "PhotoKit_PHPersistentChange")]
        #[method(enumerateChangesWithBlock:)]
        pub unsafe fn enumerateChangesWithBlock(
            &self,
            block: &Block<(NonNull<PHPersistentChange>, NonNull<Bool>), ()>,
        );
    }
);