engage/generated/unity_engine/resource_management/util/
asyncophandlescachekey.rs1#[cfg(feature = "unity_engine-resource_management-util-asyncophandlescachekey-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/resource_management/util/asyncophandlescachekey/AsyncOpHandlesCacheKey.md"))]
11 #[::unity::class(namespace = "UnityEngine.ResourceManagement.Util", name = "AsyncOpHandlesCacheKey")]
12 #[parent(crate::system::object::Object)]
13 pub struct AsyncOpHandlesCacheKey {
14 #[offset(16)]
15 #[rename(name = "m_Handles")]
16 pub m_handles: crate::system::collections::generic::hashset_1::HashSet_1<
17 crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle,
18 >,
19 }
20}
21
22#[cfg(feature = "unity_engine-resource_management-util-asyncophandlescachekey-types")]
23pub use __types::*;
24
25#[cfg(feature = "unity_engine-resource_management-util-asyncophandlescachekey")]
26#[doc(hidden)]
27#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
28mod __AsyncOpHandlesCacheKey_unity_raw {
29 use super::*;
30 #[doc(hidden)]
31 #[allow(non_snake_case)]
32 pub mod __lookup_ctor {
33 use super::*;
34 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
35 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
36 crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle,
37 > as ::unity::IlType>::il_type()];
38 ::unity::lookup::method_info_on_class_with_signature(
39 <AsyncOpHandlesCacheKey as ::unity::ClassIdentity>::class(),
40 ".ctor",
41 1,
42 param_types,
43 false,
44 )
45 });
46 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
47 match &*METHOD {
48 ::core::result::Result::Ok(mi) => *mi,
49 ::core::result::Result::Err(e) => {
50 panic!(
51 "method lookup failed: {}
52::{}
53: {}
54",
55 <AsyncOpHandlesCacheKey as ::unity::ClassIdentity>::NAME,
56 ".ctor",
57 e
58 )
59 },
60 }
61 }
62 }
63 #[doc(hidden)]
64 #[allow(non_snake_case)]
65 pub mod __lookup_equals_3 {
66 use super::*;
67 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
68 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
69 &[<crate::unity_engine::resource_management::util::asyncophandlescachekey::AsyncOpHandlesCacheKey as ::unity::IlType>::il_type()];
70 ::unity::lookup::method_info_on_class_with_signature(
71 <AsyncOpHandlesCacheKey as ::unity::ClassIdentity>::class(),
72 "Equals",
73 1,
74 param_types,
75 false,
76 )
77 });
78 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79 match &*METHOD {
80 ::core::result::Result::Ok(mi) => *mi,
81 ::core::result::Result::Err(e) => {
82 panic!(
83 "method lookup failed: {}
84::{}
85: {}
86",
87 <AsyncOpHandlesCacheKey as ::unity::ClassIdentity>::NAME,
88 "Equals",
89 e
90 )
91 },
92 }
93 }
94 }
95}
96
97#[cfg(feature = "unity_engine-resource_management-util-asyncophandlescachekey")]
98pub trait IAsyncOpHandlesCacheKeyMethods: IAsyncOpHandlesCacheKey {
99 #[doc = "`.ctor(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle>)` overload"]
100 fn ctor(
101 self,
102 handles: impl ::core::convert::Into<
103 crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
104 crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle,
105 >,
106 >,
107 ) -> () {
108 unsafe {
109 let __receiver =
110 <AsyncOpHandlesCacheKey as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 ::unity::il2cpp_call!(__AsyncOpHandlesCacheKey_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
112(AsyncOpHandlesCacheKey)__receiver,(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle>)::core::convert::Into::into(handles))
113 }
114 }
115 #[doc = "`GetHashCode()` overload"]
116 fn get_hash_code(self) -> i32 {
117 unsafe {
118 let __receiver =
119 <AsyncOpHandlesCacheKey as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120 {
121 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
122 let __vi = *__vt.get(2usize).unwrap_or_else(|| {
123 panic!(
124 "unity: virtual slot {}
125 out of range (vtable len {}
126) on the runtime class behind {}
127 (method `{}
128`)",
129 2usize,
130 __vt.len(),
131 <AsyncOpHandlesCacheKey as ::unity::ClassIdentity>::NAME,
132 "GetHashCode",
133 )
134 });
135 let __inner: extern "C" fn(AsyncOpHandlesCacheKey, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
136 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
137 __inner(__receiver, __mi)
138 }
139 }
140 }
141 #[doc = "`Equals(crate::system::object::Object)` overload"]
142 fn equals(self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
143 unsafe {
144 let __receiver =
145 <AsyncOpHandlesCacheKey as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146 {
147 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
148 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
149 panic!(
150 "unity: virtual slot {}
151 out of range (vtable len {}
152) on the runtime class behind {}
153 (method `{}
154`)",
155 0usize,
156 __vt.len(),
157 <AsyncOpHandlesCacheKey as ::unity::ClassIdentity>::NAME,
158 "Equals",
159 )
160 });
161 let __inner: extern "C" fn(AsyncOpHandlesCacheKey, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
162 ::core::mem::transmute(__vi.method_ptr);
163 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
164 __inner(__receiver, ::core::convert::Into::into(obj), __mi)
165 }
166 }
167 }
168 #[doc = "`Equals(crate::unity_engine::resource_management::util::ioperationcachekey::IOperationCacheKey)` overload"]
169 fn equals_2(
170 self,
171 other: impl ::core::convert::Into<crate::unity_engine::resource_management::util::ioperationcachekey::IOperationCacheKey>,
172 ) -> bool {
173 unsafe {
174 let __receiver =
175 <AsyncOpHandlesCacheKey as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176 {
177 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
178 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
179 panic!(
180 "unity: virtual slot {}
181 out of range (vtable len {}
182) on the runtime class behind {}
183 (method `{}
184`)",
185 4usize,
186 __vt.len(),
187 <AsyncOpHandlesCacheKey as ::unity::ClassIdentity>::NAME,
188 "Equals",
189 )
190 });
191 let __inner: extern "C" fn(
192 AsyncOpHandlesCacheKey,
193 crate::unity_engine::resource_management::util::ioperationcachekey::IOperationCacheKey,
194 ::unity::OptionalMethod,
195 ) -> bool = ::core::mem::transmute(__vi.method_ptr);
196 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
197 __inner(__receiver, ::core::convert::Into::into(other), __mi)
198 }
199 }
200 }
201 #[doc = "`Equals(crate::unity_engine::resource_management::util::asyncophandlescachekey::AsyncOpHandlesCacheKey)` overload"]
202 fn equals_3(
203 self,
204 other: impl ::core::convert::Into<crate::unity_engine::resource_management::util::asyncophandlescachekey::AsyncOpHandlesCacheKey>,
205 ) -> bool {
206 unsafe {
207 let __receiver =
208 <AsyncOpHandlesCacheKey as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
209 ::unity::il2cpp_call!(__AsyncOpHandlesCacheKey_unity_raw::__lookup_equals_3::get_method_info().method_ptr,bool;
210(AsyncOpHandlesCacheKey)__receiver,(crate::unity_engine::resource_management::util::asyncophandlescachekey::AsyncOpHandlesCacheKey)::core::convert::Into::into(other))
211 }
212 }
213}
214
215#[cfg(feature = "unity_engine-resource_management-util-asyncophandlescachekey")]
216impl<__T: IAsyncOpHandlesCacheKey> IAsyncOpHandlesCacheKeyMethods for __T {}
217
218#[cfg(feature = "unity_engine-resource_management-util-asyncophandlescachekey")]
219impl AsyncOpHandlesCacheKey {
220 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
222 }
223
224 pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
226 }
227
228 pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
230 }
231
232 pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
234 }
235
236 pub fn equals_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
238 }
239}
240
241#[cfg(feature = "unity_engine-resource_management-util-asyncophandlescachekey")]
242impl AsyncOpHandlesCacheKey {
243 #[doc = "Direct (non-virtual) call to `AsyncOpHandlesCacheKey`'s own `GetHashCode`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
244 pub unsafe fn get_hash_code(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
245 let __mi = Self::get_hash_code_method_info();
246 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
247 __inner(this.into(), ::core::option::Option::None)
248 }
249
250 #[doc = "Direct (non-virtual) call to `AsyncOpHandlesCacheKey`'s own `Equals`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
251 pub unsafe fn equals(this: impl ::core::convert::Into<::unity::IlInstance>, obj: crate::system::object::Object) -> bool {
252 let __mi = Self::equals_method_info();
253 let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
254 ::core::mem::transmute(__mi.method_ptr);
255 __inner(this.into(), obj, ::core::option::Option::None)
256 }
257
258 #[doc = "Direct (non-virtual) call to `AsyncOpHandlesCacheKey`'s own `Equals`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
259 pub unsafe fn equals_2(
260 this: impl ::core::convert::Into<::unity::IlInstance>,
261 other: crate::unity_engine::resource_management::util::ioperationcachekey::IOperationCacheKey,
262 ) -> bool {
263 let __mi = Self::equals_2_method_info();
264 let __inner: extern "C" fn(
265 ::unity::IlInstance,
266 crate::unity_engine::resource_management::util::ioperationcachekey::IOperationCacheKey,
267 ::unity::OptionalMethod,
268 ) -> bool = ::core::mem::transmute(__mi.method_ptr);
269 __inner(this.into(), other, ::core::option::Option::None)
270 }
271}
272
273#[cfg(feature = "unity_engine-resource_management-util-asyncophandlescachekey")]
274impl AsyncOpHandlesCacheKey {
275 #[doc = "`.ctor(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle>)` — overload selector"]
276 pub fn new(
277 handles: crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
278 crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle,
279 >,
280 ) -> Self {
281 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
282 panic!(
283 "{}
284::{}
285 failed to instantiate",
286 ::core::stringify!(AsyncOpHandlesCacheKey),
287 ::core::stringify!(new),
288 )
289 });
290 <Self as IAsyncOpHandlesCacheKeyMethods>::ctor(this, handles);
291 this
292 }
293}
294
295#[cfg(feature = "unity_engine-resource_management-util-asyncophandlescachekey")]
296#[doc(hidden)]
297pub mod prelude {
298 pub use super::{AsyncOpHandlesCacheKey, IAsyncOpHandlesCacheKey, IAsyncOpHandlesCacheKeyMethods};
299 pub use crate::system::object::IObject;
300 #[cfg(feature = "system-object")]
301 pub use crate::system::object::IObjectMethods;
302}