objc2_core_ml/generated/
MLModelStructureNeuralNetworkLayer.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[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 #[unsafe(method(name))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn name(&self) -> Retained<NSString>;
40
41 #[unsafe(method(type))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn r#type(&self) -> Retained<NSString>;
45
46 #[unsafe(method(inputNames))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn inputNames(&self) -> Retained<NSArray<NSString>>;
50
51 #[unsafe(method(outputNames))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn outputNames(&self) -> Retained<NSArray<NSString>>;
55 );
56}