objc2-core-ml 0.3.2

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

use crate::*;

extern_class!(
    /// MLModelCollectionEntry
    /// Information about a model in a model collection.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/coreml/mlmodelcollectionentry?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[deprecated = "Use Background Assets or NSURLSession instead."]
    pub struct MLModelCollectionEntry;
);

extern_conformance!(
    unsafe impl NSObjectProtocol for MLModelCollectionEntry {}
);

impl MLModelCollectionEntry {
    extern_methods!(
        #[deprecated = "Use Background Assets or NSURLSession instead."]
        #[unsafe(method(modelIdentifier))]
        #[unsafe(method_family = none)]
        pub unsafe fn modelIdentifier(&self) -> Retained<NSString>;

        #[deprecated = "Use Background Assets or NSURLSession instead."]
        #[unsafe(method(modelURL))]
        #[unsafe(method_family = none)]
        pub unsafe fn modelURL(&self) -> Retained<NSURL>;

        #[deprecated = "Use Background Assets or NSURLSession instead."]
        #[unsafe(method(isEqualToModelCollectionEntry:))]
        #[unsafe(method_family = none)]
        pub unsafe fn isEqualToModelCollectionEntry(&self, entry: &MLModelCollectionEntry) -> bool;

        #[deprecated = "Use Background Assets or NSURLSession instead."]
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[deprecated = "Use Background Assets or NSURLSession instead."]
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}