objc2_core_ml/generated/
MLComputePlanCost.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct MLComputePlanCost;
16);
17
18unsafe impl Send for MLComputePlanCost {}
19
20unsafe impl Sync for MLComputePlanCost {}
21
22extern_conformance!(
23 unsafe impl NSObjectProtocol for MLComputePlanCost {}
24);
25
26impl MLComputePlanCost {
27 extern_methods!(
28 #[unsafe(method(init))]
29 #[unsafe(method_family = init)]
30 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
31
32 #[unsafe(method(new))]
33 #[unsafe(method_family = new)]
34 pub unsafe fn new() -> Retained<Self>;
35
36 #[unsafe(method(weight))]
44 #[unsafe(method_family = none)]
45 pub unsafe fn weight(&self) -> c_double;
46 );
47}