objc2_metal/generated/
MTL4FunctionDescriptor.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 MTL4FunctionDescriptor;
16);
17
18extern_conformance!(
19 unsafe impl NSCopying for MTL4FunctionDescriptor {}
20);
21
22unsafe impl CopyingHelper for MTL4FunctionDescriptor {
23 type Result = Self;
24}
25
26extern_conformance!(
27 unsafe impl NSObjectProtocol for MTL4FunctionDescriptor {}
28);
29
30impl MTL4FunctionDescriptor {
31 extern_methods!();
32}
33
34impl MTL4FunctionDescriptor {
36 extern_methods!(
37 #[unsafe(method(init))]
38 #[unsafe(method_family = init)]
39 pub fn init(this: Allocated<Self>) -> Retained<Self>;
40
41 #[unsafe(method(new))]
42 #[unsafe(method_family = new)]
43 pub fn new() -> Retained<Self>;
44 );
45}
46
47impl DefaultRetained for MTL4FunctionDescriptor {
48 #[inline]
49 fn default_retained() -> Retained<Self> {
50 Self::new()
51 }
52}