objc2_ml_compute/generated/
MLCGatherLayer.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    /// A gather layer
10    ///
11    /// See also [Apple's documentation](https://developer.apple.com/documentation/mlcompute/mlcgatherlayer?language=objc)
12    #[unsafe(super(MLCLayer, NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    #[cfg(feature = "MLCLayer")]
15    #[deprecated]
16    pub struct MLCGatherLayer;
17);
18
19#[cfg(feature = "MLCLayer")]
20extern_conformance!(
21    unsafe impl NSObjectProtocol for MLCGatherLayer {}
22);
23
24#[cfg(feature = "MLCLayer")]
25impl MLCGatherLayer {
26    extern_methods!(
27        /// The dimension along which to index
28        #[deprecated]
29        #[unsafe(method(dimension))]
30        #[unsafe(method_family = none)]
31        pub unsafe fn dimension(&self) -> NSUInteger;
32
33        /// Create a gather layer
34        ///
35        /// Parameter `dimension`: The dimension along which to index
36        ///
37        /// Returns: A new gather layer
38        #[deprecated]
39        #[unsafe(method(layerWithDimension:))]
40        #[unsafe(method_family = none)]
41        pub unsafe fn layerWithDimension(dimension: NSUInteger) -> Retained<Self>;
42    );
43}
44
45/// Methods declared on superclass `MLCLayer`.
46#[cfg(feature = "MLCLayer")]
47impl MLCGatherLayer {
48    extern_methods!(
49        #[deprecated]
50        #[unsafe(method(new))]
51        #[unsafe(method_family = new)]
52        pub unsafe fn new() -> Retained<Self>;
53
54        #[deprecated]
55        #[unsafe(method(init))]
56        #[unsafe(method_family = init)]
57        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
58    );
59}