objc2_core_ml/generated/
MLBatchProvider.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_protocol!(
9    /// Protocol for accessing a collection of feature providers
10    ///
11    /// See also [Apple's documentation](https://developer.apple.com/documentation/coreml/mlbatchprovider?language=objc)
12    pub unsafe trait MLBatchProvider {
13        /// Total number of feature providers
14        #[unsafe(method(count))]
15        #[unsafe(method_family = none)]
16        unsafe fn count(&self) -> NSInteger;
17
18        #[cfg(feature = "MLFeatureProvider")]
19        /// Indexed access to collection
20        #[unsafe(method(featuresAtIndex:))]
21        #[unsafe(method_family = none)]
22        unsafe fn featuresAtIndex(
23            &self,
24            index: NSInteger,
25        ) -> Retained<ProtocolObject<dyn MLFeatureProvider>>;
26    }
27);