objc2_core_ml/generated/
MLKey.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    /// A class representing key used to store any value against
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/coreml/mlkey?language=objc)
13    #[unsafe(super(NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct MLKey;
16);
17
18extern_conformance!(
19    unsafe impl NSCoding for MLKey {}
20);
21
22extern_conformance!(
23    unsafe impl NSCopying for MLKey {}
24);
25
26unsafe impl CopyingHelper for MLKey {
27    type Result = Self;
28}
29
30extern_conformance!(
31    unsafe impl NSObjectProtocol for MLKey {}
32);
33
34extern_conformance!(
35    unsafe impl NSSecureCoding for MLKey {}
36);
37
38impl MLKey {
39    extern_methods!(
40        #[unsafe(method(name))]
41        #[unsafe(method_family = none)]
42        pub unsafe fn name(&self) -> Retained<NSString>;
43
44        #[unsafe(method(scope))]
45        #[unsafe(method_family = none)]
46        pub unsafe fn scope(&self) -> Option<Retained<NSString>>;
47
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}