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::Contacts::*;
use crate::Foundation::*;

__inner_extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Contacts_CNFetchResult")]
    pub struct CNFetchResult<ValueType: ?Sized = AnyObject> {
        __superclass: NSObject,
        _inner0: PhantomData<*mut ValueType>,
        notunwindsafe: PhantomData<&'static mut ()>,
    }

    #[cfg(feature = "Contacts_CNFetchResult")]
    unsafe impl<ValueType: ?Sized + Message> ClassType for CNFetchResult<ValueType> {
        type Super = NSObject;
        type Mutability = InteriorMutable;

        fn as_super(&self) -> &Self::Super {
            &self.__superclass
        }

        fn as_super_mut(&mut self) -> &mut Self::Super {
            &mut self.__superclass
        }
    }
);

#[cfg(feature = "Contacts_CNFetchResult")]
unsafe impl<ValueType: ?Sized> NSObjectProtocol for CNFetchResult<ValueType> {}

extern_methods!(
    #[cfg(feature = "Contacts_CNFetchResult")]
    unsafe impl<ValueType: Message> CNFetchResult<ValueType> {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

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

        #[method_id(@__retain_semantics Other value)]
        pub unsafe fn value(&self) -> Id<ValueType>;

        #[cfg(feature = "Foundation_NSData")]
        #[method_id(@__retain_semantics Other currentHistoryToken)]
        pub unsafe fn currentHistoryToken(&self) -> Id<NSData>;
    }
);