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_protocol!(
    /// [Apple's documentation](https://developer.apple.com/documentation/coreml/mlfeatureprovider?language=objc)
    pub unsafe trait MLFeatureProvider {
        #[unsafe(method(featureNames))]
        #[unsafe(method_family = none)]
        unsafe fn featureNames(&self) -> Retained<NSSet<NSString>>;

        #[cfg(feature = "MLFeatureValue")]
        /// Returns nil if the provided featureName is not in the set of featureNames
        #[unsafe(method(featureValueForName:))]
        #[unsafe(method_family = none)]
        unsafe fn featureValueForName(
            &self,
            feature_name: &NSString,
        ) -> Option<Retained<MLFeatureValue>>;
    }
);