objc2_core_ml/generated/
MLMultiArrayShapeConstraint.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::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/coreml/mlmultiarrayshapeconstraint?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct MLMultiArrayShapeConstraint;
14);
15
16extern_conformance!(
17    unsafe impl NSCoding for MLMultiArrayShapeConstraint {}
18);
19
20extern_conformance!(
21    unsafe impl NSObjectProtocol for MLMultiArrayShapeConstraint {}
22);
23
24extern_conformance!(
25    unsafe impl NSSecureCoding for MLMultiArrayShapeConstraint {}
26);
27
28impl MLMultiArrayShapeConstraint {
29    extern_methods!(
30        #[cfg(feature = "MLMultiArrayShapeConstraintType")]
31        #[unsafe(method(type))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn r#type(&self) -> MLMultiArrayShapeConstraintType;
34
35        #[unsafe(method(sizeRangeForDimension))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn sizeRangeForDimension(&self) -> Retained<NSArray<NSValue>>;
38
39        #[unsafe(method(enumeratedShapes))]
40        #[unsafe(method_family = none)]
41        pub unsafe fn enumeratedShapes(&self) -> Retained<NSArray<NSArray<NSNumber>>>;
42    );
43}
44
45/// Methods declared on superclass `NSObject`.
46impl MLMultiArrayShapeConstraint {
47    extern_methods!(
48        #[unsafe(method(init))]
49        #[unsafe(method_family = init)]
50        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
51
52        #[unsafe(method(new))]
53        #[unsafe(method_family = new)]
54        pub unsafe fn new() -> Retained<Self>;
55    );
56}