objc2_ml_compute/generated/
MLCArithmeticLayer.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::*;
5
6use crate::*;
7
8extern_class!(
9    /// An arithmetic layer
10    ///
11    /// See also [Apple's documentation](https://developer.apple.com/documentation/mlcompute/mlcarithmeticlayer?language=objc)
12    #[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        /// The arithmetic operation.
29        #[deprecated]
30        #[unsafe(method(operation))]
31        #[unsafe(method_family = none)]
32        pub unsafe fn operation(&self) -> MLCArithmeticOperation;
33
34        #[cfg(feature = "MLCTypes")]
35        /// Create an arithmetic layer
36        ///
37        /// Parameter `operation`: The arithmetic operation
38        ///
39        /// Returns: A new arithmetic layer
40        #[deprecated]
41        #[unsafe(method(layerWithOperation:))]
42        #[unsafe(method_family = none)]
43        pub unsafe fn layerWithOperation(operation: MLCArithmeticOperation) -> Retained<Self>;
44    );
45}
46
47/// Methods declared on superclass `MLCLayer`.
48#[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}