objc2_core_ml/generated/
MLStateConstraint.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct MLStateConstraint;
16);
17
18extern_conformance!(
19 unsafe impl NSCoding for MLStateConstraint {}
20);
21
22extern_conformance!(
23 unsafe impl NSObjectProtocol for MLStateConstraint {}
24);
25
26extern_conformance!(
27 unsafe impl NSSecureCoding for MLStateConstraint {}
28);
29
30impl MLStateConstraint {
31 extern_methods!(
32 #[unsafe(method(bufferShape))]
34 #[unsafe(method_family = none)]
35 pub unsafe fn bufferShape(&self) -> Retained<NSArray<NSNumber>>;
36
37 #[cfg(feature = "MLMultiArray")]
38 #[unsafe(method(dataType))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn dataType(&self) -> MLMultiArrayDataType;
42 );
43}
44
45impl MLStateConstraint {
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}