objc2_core_ml/generated/
MLCPUComputeDevice.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9 #[unsafe(super(NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct MLCPUComputeDevice;
15);
16
17unsafe impl Send for MLCPUComputeDevice {}
18
19unsafe impl Sync for MLCPUComputeDevice {}
20
21#[cfg(feature = "MLComputeDeviceProtocol")]
22extern_conformance!(
23 unsafe impl MLComputeDeviceProtocol for MLCPUComputeDevice {}
24);
25
26extern_conformance!(
27 unsafe impl NSObjectProtocol for MLCPUComputeDevice {}
28);
29
30impl MLCPUComputeDevice {
31 extern_methods!(
32 #[unsafe(method(init))]
33 #[unsafe(method_family = init)]
34 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
35
36 #[unsafe(method(new))]
37 #[unsafe(method_family = new)]
38 pub unsafe fn new() -> Retained<Self>;
39 );
40}