Skip to main content

engage/generated/system/collections/generic/
arraysorthelper_2.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-collections-generic-arraysorthelper_2-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/system/collections/generic/arraysorthelper_2/ArraySortHelper_2.md"))]
11    #[::unity::class(namespace = "System.Collections.Generic", name = "ArraySortHelper`2")]
12    #[parent(crate::system::object::Object)]
13    pub struct ArraySortHelper_2<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> {
14        #[static_field]
15        #[rename(name = "s_defaultArraySortHelper")]
16        pub s_default_array_sort_helper: crate::system::collections::generic::arraysorthelper_2::ArraySortHelper_2<T0, T1>,
17    }
18}
19
20#[cfg(feature = "system-collections-generic-arraysorthelper_2-types")]
21pub use __types::*;
22
23#[cfg(feature = "system-collections-generic-arraysorthelper_2")]
24#[::unity::methods]
25impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> ArraySortHelper_2<T0, T1> {
26    #[doc = "`get_Default()` overload"]
27    #[method(name = "get_Default", args = 0)]
28    pub fn get_default() -> crate::system::collections::generic::arraysorthelper_2::ArraySortHelper_2<T0, T1>;
29
30    #[doc = "`CreateArraySortHelper()` overload"]
31    #[method(name = "CreateArraySortHelper", args = 0)]
32    pub fn create_array_sort_helper() -> crate::system::collections::generic::arraysorthelper_2::ArraySortHelper_2<T0, T1>;
33
34    #[doc = "`Sort(::unity::Array<T0>, ::unity::Array<T1>, i32, i32, crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>)` overload"]
35    #[method(name = "Sort", args = 5)]
36    pub fn sort(
37        self,
38        keys: ::unity::Array<T0>,
39        values: ::unity::Array<T1>,
40        index: i32,
41        length: i32,
42        comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>,
43    ) -> ();
44
45    #[doc = "`SwapIfGreaterWithItems(::unity::Array<T0>, ::unity::Array<T1>, crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>, i32, i32)` overload"]
46    #[method(name = "SwapIfGreaterWithItems", args = 5)]
47    pub fn swap_if_greater_with_items(
48        keys: ::unity::Array<T0>,
49        values: ::unity::Array<T1>,
50        comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>,
51        a: i32,
52        b: i32,
53    ) -> ();
54
55    #[doc = "`Swap(::unity::Array<T0>, ::unity::Array<T1>, i32, i32)` overload"]
56    #[method(name = "Swap", args = 4)]
57    pub fn swap(keys: ::unity::Array<T0>, values: ::unity::Array<T1>, i: i32, j: i32) -> ();
58
59    #[doc = "`IntrospectiveSort(::unity::Array<T0>, ::unity::Array<T1>, i32, i32, crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>)` overload"]
60    #[method(name = "IntrospectiveSort", args = 5)]
61    pub fn introspective_sort(
62        keys: ::unity::Array<T0>,
63        values: ::unity::Array<T1>,
64        left: i32,
65        length: i32,
66        comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>,
67    ) -> ();
68
69    #[doc = "`IntroSort(::unity::Array<T0>, ::unity::Array<T1>, i32, i32, i32, crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>)` overload"]
70    #[method(name = "IntroSort", args = 6)]
71    pub fn intro_sort(
72        keys: ::unity::Array<T0>,
73        values: ::unity::Array<T1>,
74        lo: i32,
75        hi: i32,
76        depth_limit: i32,
77        comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>,
78    ) -> ();
79
80    #[doc = "`PickPivotAndPartition(::unity::Array<T0>, ::unity::Array<T1>, i32, i32, crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>)` overload"]
81    #[method(name = "PickPivotAndPartition", args = 5)]
82    pub fn pick_pivot_and_partition(
83        keys: ::unity::Array<T0>,
84        values: ::unity::Array<T1>,
85        lo: i32,
86        hi: i32,
87        comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>,
88    ) -> i32;
89
90    #[doc = "`Heapsort(::unity::Array<T0>, ::unity::Array<T1>, i32, i32, crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>)` overload"]
91    #[method(name = "Heapsort", args = 5)]
92    pub fn heapsort(
93        keys: ::unity::Array<T0>,
94        values: ::unity::Array<T1>,
95        lo: i32,
96        hi: i32,
97        comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>,
98    ) -> ();
99
100    #[doc = "`DownHeap(::unity::Array<T0>, ::unity::Array<T1>, i32, i32, i32, crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>)` overload"]
101    #[method(name = "DownHeap", args = 6)]
102    pub fn down_heap(
103        keys: ::unity::Array<T0>,
104        values: ::unity::Array<T1>,
105        i: i32,
106        n: i32,
107        lo: i32,
108        comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>,
109    ) -> ();
110
111    #[doc = "`InsertionSort(::unity::Array<T0>, ::unity::Array<T1>, i32, i32, crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>)` overload"]
112    #[method(name = "InsertionSort", args = 5)]
113    pub fn insertion_sort(
114        keys: ::unity::Array<T0>,
115        values: ::unity::Array<T1>,
116        lo: i32,
117        hi: i32,
118        comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>,
119    ) -> ();
120
121    #[doc = "`.ctor()` overload"]
122    #[method(name = ".ctor", args = 0)]
123    pub fn ctor(self) -> ();
124}
125
126#[cfg(feature = "system-collections-generic-arraysorthelper_2")]
127impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> ArraySortHelper_2<T0, T1> {
128    #[doc = "`.ctor()` — no args"]
129    pub fn new() -> Self {
130        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
131            panic!(
132                "{}
133::{}
134 failed to instantiate",
135                ::core::stringify!(ArraySortHelper_2),
136                ::core::stringify!(new),
137            )
138        });
139        <Self as IArraySortHelper_2Methods<T0, T1>>::ctor(this);
140        this
141    }
142}
143
144#[cfg(feature = "system-collections-generic-arraysorthelper_2")]
145#[doc(hidden)]
146pub mod prelude {
147    pub use super::{ArraySortHelper_2, IArraySortHelper_2, IArraySortHelper_2Methods};
148    pub use crate::system::object::IObject;
149    #[cfg(feature = "system-object")]
150    pub use crate::system::object::IObjectMethods;
151}