objc2_ml_compute/generated/
MLCPoolingLayer.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 MLCPoolingLayer;
17);
18
19#[cfg(feature = "MLCLayer")]
20extern_conformance!(
21 unsafe impl NSObjectProtocol for MLCPoolingLayer {}
22);
23
24#[cfg(feature = "MLCLayer")]
25impl MLCPoolingLayer {
26 extern_methods!(
27 #[cfg(feature = "MLCPoolingDescriptor")]
28 #[deprecated]
30 #[unsafe(method(descriptor))]
31 #[unsafe(method_family = none)]
32 pub unsafe fn descriptor(&self) -> Retained<MLCPoolingDescriptor>;
33
34 #[cfg(feature = "MLCPoolingDescriptor")]
35 #[deprecated]
41 #[unsafe(method(layerWithDescriptor:))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn layerWithDescriptor(descriptor: &MLCPoolingDescriptor) -> Retained<Self>;
44 );
45}
46
47#[cfg(feature = "MLCLayer")]
49impl MLCPoolingLayer {
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}