engage/generated/unity_engine/rendering/
listbufferextensions.rs1#[cfg(feature = "unity_engine-rendering-listbufferextensions-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/rendering/listbufferextensions/ListBufferExtensions.md"))]
11 #[::unity::class(namespace = "UnityEngine.Rendering", name = "ListBufferExtensions")]
12 #[parent(crate::system::object::Object)]
13 pub struct ListBufferExtensions {}
14}
15
16#[cfg(feature = "unity_engine-rendering-listbufferextensions-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-rendering-listbufferextensions")]
20impl ListBufferExtensions {
21 pub fn quick_sort<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
22 self_: impl ::core::convert::Into<crate::unity_engine::rendering::listbuffer_1::ListBuffer_1<M0>>,
23 ) -> () {
24 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
25 ::unity::lookup::method_info_on_class(<ListBufferExtensions as ::unity::ClassIdentity>::class(), "QuickSort", 1)
26 });
27 #[allow(clippy::type_complexity)]
28 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
29 ::std::sync::OnceLock::new();
30 let _ = true;
31 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
32 ::core::result::Result::Ok(mi) => *mi,
33 ::core::result::Result::Err(e) => {
34 panic!(
35 "method lookup failed: {}
36::{}
37: {}
38",
39 <ListBufferExtensions as ::unity::ClassIdentity>::NAME,
40 "QuickSort",
41 e
42 )
43 },
44 };
45 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
46 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
47 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
48 let mut __guard = __cache.lock().unwrap();
49 *__guard
50 .entry(__key)
51 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
52 };
53 unsafe {
54 let __f: extern "C" fn(crate::unity_engine::rendering::listbuffer_1::ListBuffer_1<M0>, ::unity::OptionalMethod) -> () =
55 ::core::mem::transmute(__inflated.method_ptr);
56 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
57 __f(::core::convert::Into::into(self_), ::core::option::Option::Some(__mi_opaque))
58 }
59 }
60}
61
62#[cfg(feature = "unity_engine-rendering-listbufferextensions")]
63#[doc(hidden)]
64pub mod prelude {
65 pub use super::{IListBufferExtensions, ListBufferExtensions};
66 pub use crate::system::object::IObject;
67 #[cfg(feature = "system-object")]
68 pub use crate::system::object::IObjectMethods;
69}