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