objc2_core_ml/generated/
MLModelStructureNeuralNetworkLayer.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 layer in a NeuralNetwork.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/coreml/mlmodelstructureneuralnetworklayer?language=objc)
13    #[unsafe(super(NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct MLModelStructureNeuralNetworkLayer;
16);
17
18unsafe impl Send for MLModelStructureNeuralNetworkLayer {}
19
20unsafe impl Sync for MLModelStructureNeuralNetworkLayer {}
21
22extern_conformance!(
23    unsafe impl NSObjectProtocol for MLModelStructureNeuralNetworkLayer {}
24);
25
26impl MLModelStructureNeuralNetworkLayer {
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        /// The layer name.
37        ///
38        /// This property is not atomic.
39        ///
40        /// # Safety
41        ///
42        /// This might not be thread-safe.
43        #[unsafe(method(name))]
44        #[unsafe(method_family = none)]
45        pub unsafe fn name(&self) -> Retained<NSString>;
46
47        /// The type of the layer, e,g, "elementwise", "pooling", etc.
48        ///
49        /// This property is not atomic.
50        ///
51        /// # Safety
52        ///
53        /// This might not be thread-safe.
54        #[unsafe(method(type))]
55        #[unsafe(method_family = none)]
56        pub unsafe fn r#type(&self) -> Retained<NSString>;
57
58        /// The input names.
59        ///
60        /// This property is not atomic.
61        ///
62        /// # Safety
63        ///
64        /// This might not be thread-safe.
65        #[unsafe(method(inputNames))]
66        #[unsafe(method_family = none)]
67        pub unsafe fn inputNames(&self) -> Retained<NSArray<NSString>>;
68
69        /// The output names.
70        ///
71        /// This property is not atomic.
72        ///
73        /// # Safety
74        ///
75        /// This might not be thread-safe.
76        #[unsafe(method(outputNames))]
77        #[unsafe(method_family = none)]
78        pub unsafe fn outputNames(&self) -> Retained<NSArray<NSString>>;
79    );
80}