objc2_core_ml/generated/
MLModelStructureProgramFunction.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::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// A class representing a function in the Program.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/coreml/mlmodelstructureprogramfunction?language=objc)
13    #[unsafe(super(NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct MLModelStructureProgramFunction;
16);
17
18unsafe impl Send for MLModelStructureProgramFunction {}
19
20unsafe impl Sync for MLModelStructureProgramFunction {}
21
22extern_conformance!(
23    unsafe impl NSObjectProtocol for MLModelStructureProgramFunction {}
24);
25
26impl MLModelStructureProgramFunction {
27    extern_methods!(
28        #[unsafe(method(init))]
29        #[unsafe(method_family = init)]
30        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
31
32        #[unsafe(method(new))]
33        #[unsafe(method_family = new)]
34        pub unsafe fn new() -> Retained<Self>;
35
36        #[cfg(feature = "MLModelStructureProgramNamedValueType")]
37        /// The named inputs to the function.
38        #[unsafe(method(inputs))]
39        #[unsafe(method_family = none)]
40        pub unsafe fn inputs(&self) -> Retained<NSArray<MLModelStructureProgramNamedValueType>>;
41
42        #[cfg(feature = "MLModelStructureProgramBlock")]
43        /// The active block in the function.
44        #[unsafe(method(block))]
45        #[unsafe(method_family = none)]
46        pub unsafe fn block(&self) -> Retained<MLModelStructureProgramBlock>;
47    );
48}