objc2_core_ml/generated/
MLKey.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 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}