objc2_ml_compute/generated/
MLCArithmeticLayer.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9 #[unsafe(super(MLCLayer, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(feature = "MLCLayer")]
15 #[deprecated]
16 pub struct MLCArithmeticLayer;
17);
18
19#[cfg(feature = "MLCLayer")]
20extern_conformance!(
21 unsafe impl NSObjectProtocol for MLCArithmeticLayer {}
22);
23
24#[cfg(feature = "MLCLayer")]
25impl MLCArithmeticLayer {
26 extern_methods!(
27 #[cfg(feature = "MLCTypes")]
28 #[deprecated]
30 #[unsafe(method(operation))]
31 #[unsafe(method_family = none)]
32 pub unsafe fn operation(&self) -> MLCArithmeticOperation;
33
34 #[cfg(feature = "MLCTypes")]
35 #[deprecated]
41 #[unsafe(method(layerWithOperation:))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn layerWithOperation(operation: MLCArithmeticOperation) -> Retained<Self>;
44 );
45}
46
47#[cfg(feature = "MLCLayer")]
49impl MLCArithmeticLayer {
50 extern_methods!(
51 #[deprecated]
52 #[unsafe(method(new))]
53 #[unsafe(method_family = new)]
54 pub unsafe fn new() -> Retained<Self>;
55
56 #[deprecated]
57 #[unsafe(method(init))]
58 #[unsafe(method_family = init)]
59 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
60 );
61}