use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct MLArrayBatchProvider;
);
#[cfg(feature = "MLBatchProvider")]
extern_conformance!(
unsafe impl MLBatchProvider for MLArrayBatchProvider {}
);
extern_conformance!(
unsafe impl NSObjectProtocol for MLArrayBatchProvider {}
);
impl MLArrayBatchProvider {
extern_methods!(
#[cfg(feature = "MLFeatureProvider")]
#[unsafe(method(array))]
#[unsafe(method_family = none)]
pub unsafe fn array(&self) -> Retained<NSArray<ProtocolObject<dyn MLFeatureProvider>>>;
#[cfg(feature = "MLFeatureProvider")]
#[unsafe(method(initWithFeatureProviderArray:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithFeatureProviderArray(
this: Allocated<Self>,
array: &NSArray<ProtocolObject<dyn MLFeatureProvider>>,
) -> Retained<Self>;
#[unsafe(method(initWithDictionary:error:_))]
#[unsafe(method_family = init)]
pub unsafe fn initWithDictionary_error(
this: Allocated<Self>,
dictionary: &NSDictionary<NSString, NSArray>,
) -> Result<Retained<Self>, Retained<NSError>>;
);
}
impl MLArrayBatchProvider {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}