1#[cfg(feature = "system-collections-generic-sortedset_1-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 valuetype::{IValueType, ValueType},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/sortedset_1/SortedSet_1_Enumerator.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct SortedSet_1_Enumerator<T0> {
17 pub _phantom: ::core::marker::PhantomData<(T0,)>,
18 }
19 impl<T0: ::unity::ClassIdentity> ::unity::ClassIdentity for SortedSet_1_Enumerator<T0> {
20 const NAME: &'static str = "SortedSet`1.Enumerator";
21 const NAMESPACE: &'static str = "System.Collections.Generic";
22
23 fn class() -> ::unity::Class {
24 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
25 *CACHE.get_or_init(|| {
26 ::unity::Class::lookup(Self::NAMESPACE, Self::NAME)
27 .make_generic(&[<T0 as ::unity::ClassIdentity>::class()])
28 .expect("generic instantiation")
29 })
30 }
31 }
32 impl<T0: ::unity::ClassIdentity> ::unity::IlType for SortedSet_1_Enumerator<T0> {
33 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35 }
36 }
37
38 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/sortedset_1/SortedSet_1_Node.md"))]
39 #[::unity::class(namespace = "System.Collections.Generic", name = "SortedSet`1.Node")]
40 #[parent(crate::system::object::Object)]
41 pub struct SortedSet_1_Node<T0: ::unity::ClassIdentity> {}
42
43 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/sortedset_1/SortedSet_1.md"))]
44 #[::unity::class(namespace = "System.Collections.Generic", name = "SortedSet`1")]
45 #[parent(crate::system::object::Object)]
46 pub struct SortedSet_1<T0: ::unity::ClassIdentity> {
47 #[rename(name = "root")]
48 pub root: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>,
49 #[rename(name = "comparer")]
50 pub comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>,
51 #[rename(name = "count")]
52 pub count: i32,
53 #[rename(name = "version")]
54 pub version: i32,
55 #[rename(name = "_syncRoot")]
56 pub sync_root: ::unity::IlInstance,
57 }
58}
59
60#[cfg(feature = "system-collections-generic-sortedset_1-types")]
61pub use __types::*;
62
63#[cfg(feature = "system-collections-generic-sortedset_1")]
64#[::unity::methods(value)]
65impl<T0: ::unity::ClassIdentity> SortedSet_1_Enumerator<T0> {
66 #[doc = "`.ctor(crate::system::collections::generic::sortedset_1::SortedSet_1<T0>)` overload"]
67 #[method(name = ".ctor", args = 1)]
68 pub fn ctor(self, set: crate::system::collections::generic::sortedset_1::SortedSet_1<T0>) -> ();
69
70 #[doc = "`.ctor(crate::system::collections::generic::sortedset_1::SortedSet_1<T0>, bool)` overload"]
71 #[method(name = ".ctor", args = 2)]
72 pub fn ctor_2(self, set: crate::system::collections::generic::sortedset_1::SortedSet_1<T0>, reverse: bool) -> ();
73
74 #[doc = "`System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(crate::system::object::Object)` overload"]
75 #[method(name = "System.Runtime.Serialization.IDeserializationCallback.OnDeserialization", args = 1)]
76 pub fn system_runtime_serialization_i_deserialization_callback_on_deserialization(self, sender: crate::system::object::Object) -> ();
77
78 #[doc = "`Initialize()` overload"]
79 #[method(name = "Initialize", args = 0)]
80 pub fn initialize(self) -> ();
81
82 #[doc = "`MoveNext()` overload"]
83 #[method(name = "MoveNext", args = 0)]
84 pub fn move_next(self) -> bool;
85
86 #[doc = "`Dispose()` overload"]
87 #[method(name = "Dispose", args = 0)]
88 pub fn dispose(self) -> ();
89
90 #[doc = "`get_Current()` overload"]
91 #[method(name = "get_Current", args = 0)]
92 pub fn get_current(self) -> T0;
93
94 #[doc = "`System.Collections.IEnumerator.get_Current()` overload"]
95 #[method(name = "System.Collections.IEnumerator.get_Current", args = 0)]
96 pub fn system_collections_i_enumerator_get_current(self) -> crate::system::object::Object;
97
98 #[doc = "`get_NotStartedOrEnded()` overload"]
99 #[method(name = "get_NotStartedOrEnded", args = 0)]
100 pub fn get_not_started_or_ended(self) -> bool;
101
102 #[doc = "`Reset()` overload"]
103 #[method(name = "Reset", args = 0)]
104 pub fn reset(self) -> ();
105
106 #[doc = "`System.Collections.IEnumerator.Reset()` overload"]
107 #[method(name = "System.Collections.IEnumerator.Reset", args = 0)]
108 pub fn system_collections_i_enumerator_reset(self) -> ();
109
110 #[doc = "`.cctor()` overload"]
111 #[method(name = ".cctor", args = 0)]
112 pub fn cctor() -> ();
113}
114
115#[cfg(feature = "system-collections-generic-sortedset_1")]
116#[::unity::methods]
117impl<T0: ::unity::ClassIdentity> SortedSet_1_Node<T0> {
118 #[doc = "`.ctor(T0, crate::system::collections::generic::nodecolor::NodeColor)` overload"]
119 #[method(name = ".ctor", args = 2)]
120 pub fn ctor(self, item: T0, color: crate::system::collections::generic::nodecolor::NodeColor) -> ();
121
122 #[doc = "`IsNonNullRed(crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>)` overload"]
123 #[method(name = "IsNonNullRed", args = 1)]
124 pub fn is_non_null_red(node: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>) -> bool;
125
126 #[doc = "`IsNullOrBlack(crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>)` overload"]
127 #[method(name = "IsNullOrBlack", args = 1)]
128 pub fn is_null_or_black(node: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>) -> bool;
129
130 #[doc = "`get_Item()` overload"]
131 #[method(name = "get_Item", args = 0)]
132 pub fn get_item(self) -> T0;
133
134 #[doc = "`set_Item(T0)` overload"]
135 #[method(name = "set_Item", args = 1)]
136 pub fn set_item(self, value: T0) -> ();
137
138 #[doc = "`get_Left()` overload"]
139 #[method(name = "get_Left", args = 0)]
140 pub fn get_left(self) -> crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>;
141
142 #[doc = "`set_Left(crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>)` overload"]
143 #[method(name = "set_Left", args = 1)]
144 pub fn set_left(self, value: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>) -> ();
145
146 #[doc = "`get_Right()` overload"]
147 #[method(name = "get_Right", args = 0)]
148 pub fn get_right(self) -> crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>;
149
150 #[doc = "`set_Right(crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>)` overload"]
151 #[method(name = "set_Right", args = 1)]
152 pub fn set_right(self, value: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>) -> ();
153
154 #[doc = "`get_Color()` overload"]
155 #[method(name = "get_Color", args = 0)]
156 pub fn get_color(self) -> crate::system::collections::generic::nodecolor::NodeColor;
157
158 #[doc = "`set_Color(crate::system::collections::generic::nodecolor::NodeColor)` overload"]
159 #[method(name = "set_Color", args = 1)]
160 pub fn set_color(self, value: crate::system::collections::generic::nodecolor::NodeColor) -> ();
161
162 #[doc = "`get_IsBlack()` overload"]
163 #[method(name = "get_IsBlack", args = 0)]
164 pub fn get_is_black(self) -> bool;
165
166 #[doc = "`get_IsRed()` overload"]
167 #[method(name = "get_IsRed", args = 0)]
168 pub fn get_is_red(self) -> bool;
169
170 #[doc = "`get_Is2Node()` overload"]
171 #[method(name = "get_Is2Node", args = 0)]
172 pub fn get_is2_node(self) -> bool;
173
174 #[doc = "`get_Is4Node()` overload"]
175 #[method(name = "get_Is4Node", args = 0)]
176 pub fn get_is4_node(self) -> bool;
177
178 #[doc = "`ColorBlack()` overload"]
179 #[method(name = "ColorBlack", args = 0)]
180 pub fn color_black(self) -> ();
181
182 #[doc = "`ColorRed()` overload"]
183 #[method(name = "ColorRed", args = 0)]
184 pub fn color_red(self) -> ();
185
186 #[doc = "`GetRotation(crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>, crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>)` overload"]
187 #[method(name = "GetRotation", args = 2)]
188 pub fn get_rotation(
189 self,
190 current: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>,
191 sibling: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>,
192 ) -> crate::system::collections::generic::treerotation::TreeRotation;
193
194 #[doc = "`GetSibling(crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>)` overload"]
195 #[method(name = "GetSibling", args = 1)]
196 pub fn get_sibling(
197 self,
198 node: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>,
199 ) -> crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>;
200
201 #[doc = "`Split4Node()` overload"]
202 #[method(name = "Split4Node", args = 0)]
203 pub fn split4_node(self) -> ();
204
205 #[doc = "`Rotate(crate::system::collections::generic::treerotation::TreeRotation)` overload"]
206 #[method(name = "Rotate", args = 1)]
207 pub fn rotate(
208 self,
209 rotation: crate::system::collections::generic::treerotation::TreeRotation,
210 ) -> crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>;
211
212 #[doc = "`RotateLeft()` overload"]
213 #[method(name = "RotateLeft", args = 0)]
214 pub fn rotate_left(self) -> crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>;
215
216 #[doc = "`RotateLeftRight()` overload"]
217 #[method(name = "RotateLeftRight", args = 0)]
218 pub fn rotate_left_right(self) -> crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>;
219
220 #[doc = "`RotateRight()` overload"]
221 #[method(name = "RotateRight", args = 0)]
222 pub fn rotate_right(self) -> crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>;
223
224 #[doc = "`RotateRightLeft()` overload"]
225 #[method(name = "RotateRightLeft", args = 0)]
226 pub fn rotate_right_left(self) -> crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>;
227
228 #[doc = "`Merge2Nodes()` overload"]
229 #[method(name = "Merge2Nodes", args = 0)]
230 pub fn merge2_nodes(self) -> ();
231
232 #[doc = "`ReplaceChild(crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>, crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>)` overload"]
233 #[method(name = "ReplaceChild", args = 2)]
234 pub fn replace_child(
235 self,
236 child: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>,
237 new_child: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>,
238 ) -> ();
239}
240
241#[cfg(feature = "system-collections-generic-sortedset_1")]
242impl<T0: ::unity::ClassIdentity> SortedSet_1_Node<T0> {
243 #[doc = "`.ctor(T0, crate::system::collections::generic::nodecolor::NodeColor)` — overload selector"]
244 pub fn new(item: T0, color: crate::system::collections::generic::nodecolor::NodeColor) -> Self {
245 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
246 panic!(
247 "{}
248::{}
249 failed to instantiate",
250 ::core::stringify!(SortedSet_1_Node),
251 ::core::stringify!(new),
252 )
253 });
254 <Self as ISortedSet_1_NodeMethods<T0>>::ctor(this, item, color);
255 this
256 }
257}
258
259#[cfg(feature = "system-collections-generic-sortedset_1")]
260#[::unity::methods]
261impl<T0: ::unity::ClassIdentity> SortedSet_1<T0> {
262 #[doc = "`.ctor()` overload"]
263 #[method(name = ".ctor", args = 0)]
264 pub fn ctor(self) -> ();
265
266 #[doc = "`.ctor(crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>)` overload"]
267 #[method(name = ".ctor", args = 1)]
268 pub fn ctor_2(self, comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>) -> ();
269
270 #[doc = "`InOrderTreeWalk(crate::system::collections::generic::treewalkpredicate_1::TreeWalkPredicate_1<T0>)` overload"]
271 #[method(name = "InOrderTreeWalk", args = 1)]
272 pub fn in_order_tree_walk(self, action: crate::system::collections::generic::treewalkpredicate_1::TreeWalkPredicate_1<T0>) -> bool;
273
274 #[doc = "`get_Count()` overload"]
275 #[method(name = "get_Count", args = 0)]
276 pub fn get_count(self) -> i32;
277
278 #[doc = "`System.Collections.ICollection.get_IsSynchronized()` overload"]
279 #[method(name = "System.Collections.ICollection.get_IsSynchronized", args = 0)]
280 pub fn system_collections_i_collection_get_is_synchronized(self) -> bool;
281
282 #[doc = "`System.Collections.ICollection.get_SyncRoot()` overload"]
283 #[method(name = "System.Collections.ICollection.get_SyncRoot", args = 0)]
284 pub fn system_collections_i_collection_get_sync_root(self) -> crate::system::object::Object;
285
286 #[doc = "`VersionCheck()` overload"]
287 #[method(name = "VersionCheck", args = 0)]
288 pub fn version_check(self) -> ();
289
290 #[doc = "`IsWithinRange(T0)` overload"]
291 #[method(name = "IsWithinRange", args = 1)]
292 pub fn is_within_range(self, item: T0) -> bool;
293
294 #[doc = "`Add(T0)` overload"]
295 #[method(name = "Add", args = 1)]
296 pub fn add(self, item: T0) -> bool;
297
298 #[doc = "`AddIfNotPresent(T0)` overload"]
299 #[method(name = "AddIfNotPresent", args = 1)]
300 pub fn add_if_not_present(self, item: T0) -> bool;
301
302 #[doc = "`Remove(T0)` overload"]
303 #[method(name = "Remove", args = 1)]
304 pub fn remove(self, item: T0) -> bool;
305
306 #[doc = "`DoRemove(T0)` overload"]
307 #[method(name = "DoRemove", args = 1)]
308 pub fn do_remove(self, item: T0) -> bool;
309
310 #[doc = "`Clear()` overload"]
311 #[method(name = "Clear", args = 0)]
312 pub fn clear(self) -> ();
313
314 #[doc = "`Contains(T0)` overload"]
315 #[method(name = "Contains", args = 1)]
316 pub fn contains(self, item: T0) -> bool;
317
318 #[doc = "`CopyTo(::unity::Array<T0>, i32)` overload"]
319 #[method(name = "CopyTo", args = 2)]
320 pub fn copy_to(self, array: ::unity::Array<T0>, index: i32) -> ();
321
322 #[doc = "`CopyTo(::unity::Array<T0>, i32, i32)` overload"]
323 #[method(name = "CopyTo", args = 3)]
324 pub fn copy_to_2(self, array: ::unity::Array<T0>, index: i32, count: i32) -> ();
325
326 #[doc = "`System.Collections.ICollection.CopyTo(::unity::IlInstance, i32)` overload"]
327 #[method(name = "System.Collections.ICollection.CopyTo", args = 2)]
328 pub fn system_collections_i_collection_copy_to(self, array: ::unity::IlInstance, index: i32) -> ();
329
330 #[doc = "`GetEnumerator()` overload"]
331 #[method(name = "GetEnumerator", args = 0)]
332 pub fn get_enumerator(self) -> crate::system::collections::generic::sortedset_1::SortedSet_1_Enumerator<T0>;
333
334 #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
335 #[method(name = "System.Collections.IEnumerable.GetEnumerator", args = 0)]
336 pub fn system_collections_i_enumerable_get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator;
337
338 #[doc = "`InsertionBalance(crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>, *mutcrate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>, crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>, crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>)` overload"]
339 #[method(name = "InsertionBalance", args = 4)]
340 pub fn insertion_balance(
341 self,
342 current: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>,
343 parent: *mut crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>,
344 grand_parent: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>,
345 great_grand_parent: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>,
346 ) -> ();
347
348 #[doc = "`ReplaceChildOrRoot(crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>, crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>, crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>)` overload"]
349 #[method(name = "ReplaceChildOrRoot", args = 3)]
350 pub fn replace_child_or_root(
351 self,
352 parent: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>,
353 child: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>,
354 new_child: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>,
355 ) -> ();
356
357 #[doc = "`ReplaceNode(crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>, crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>, crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>, crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>)` overload"]
358 #[method(name = "ReplaceNode", args = 4)]
359 pub fn replace_node(
360 self,
361 r#match: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>,
362 parent_of_match: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>,
363 successor: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>,
364 parent_of_successor: crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>,
365 ) -> ();
366
367 #[doc = "`FindNode(T0)` overload"]
368 #[method(name = "FindNode", args = 1)]
369 pub fn find_node(self, item: T0) -> crate::system::collections::generic::sortedset_1::SortedSet_1_Node<T0>;
370
371 #[doc = "`UpdateVersion()` overload"]
372 #[method(name = "UpdateVersion", args = 0)]
373 pub fn update_version(self) -> ();
374
375 #[doc = "`System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(crate::system::object::Object)` overload"]
376 #[method(name = "System.Runtime.Serialization.IDeserializationCallback.OnDeserialization", args = 1)]
377 pub fn system_runtime_serialization_i_deserialization_callback_on_deserialization(self, sender: crate::system::object::Object) -> ();
378
379 #[doc = "`OnDeserialization(crate::system::object::Object)` overload"]
380 #[method(name = "OnDeserialization", args = 1)]
381 pub fn on_deserialization(self, sender: crate::system::object::Object) -> ();
382
383 #[doc = "`Log2(i32)` overload"]
384 #[method(name = "Log2", args = 1)]
385 pub fn log2(value: i32) -> i32;
386}
387
388#[cfg(feature = "system-collections-generic-sortedset_1")]
389impl<T0: ::unity::ClassIdentity> SortedSet_1<T0> {
390 #[doc = "`.ctor()` — no args"]
391 pub fn new() -> Self {
392 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
393 panic!(
394 "{}
395::{}
396 failed to instantiate",
397 ::core::stringify!(SortedSet_1),
398 ::core::stringify!(new),
399 )
400 });
401 <Self as ISortedSet_1Methods<T0>>::ctor(this);
402 this
403 }
404
405 #[doc = "`.ctor(crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>)` — overload selector"]
406 pub fn new_2(comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>) -> Self {
407 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
408 panic!(
409 "{}
410::{}
411 failed to instantiate",
412 ::core::stringify!(SortedSet_1),
413 ::core::stringify!(new_2),
414 )
415 });
416 <Self as ISortedSet_1Methods<T0>>::ctor_2(this, comparer);
417 this
418 }
419}
420
421#[cfg(feature = "system-collections-generic-sortedset_1")]
422#[doc(hidden)]
423pub mod prelude {
424 pub use super::{
425 ISortedSet_1, ISortedSet_1Methods, ISortedSet_1_Node, ISortedSet_1_NodeMethods, SortedSet_1, SortedSet_1_Enumerator, SortedSet_1_Node,
426 };
427 #[cfg(feature = "system-object")]
428 pub use crate::system::object::IObjectMethods;
429 #[cfg(feature = "system-valuetype")]
430 pub use crate::system::valuetype::IValueTypeMethods;
431 pub use crate::system::{object::IObject, valuetype::IValueType};
432}