Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-collections-generic-treeset_1-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        collections::generic::sortedset_1::{ISortedSet_1, SortedSet_1},
10        object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/treeset_1/TreeSet_1.md"))]
14    #[::unity::class(namespace = "System.Collections.Generic", name = "TreeSet`1")]
15    #[parent(crate::system::collections::generic::sortedset_1::SortedSet_1<T0>)]
16    #[parent(crate::system::object::Object)]
17    pub struct TreeSet_1<T0: ::unity::ClassIdentity> {}
18}
19
20#[cfg(feature = "system-collections-generic-treeset_1-types")]
21pub use __types::*;
22
23#[cfg(feature = "system-collections-generic-treeset_1")]
24#[::unity::methods]
25impl<T0: ::unity::ClassIdentity> TreeSet_1<T0> {
26    #[doc = "`.ctor()` overload"]
27    #[method(name = ".ctor", args = 0)]
28    pub fn ctor(self) -> ();
29
30    #[doc = "`.ctor(crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>)` overload"]
31    #[method(name = ".ctor", args = 1)]
32    pub fn ctor_2(self, comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>) -> ();
33
34    #[doc = "`AddIfNotPresent(T0)` overload"]
35    #[method(name = "AddIfNotPresent", args = 1)]
36    pub fn add_if_not_present(self, item: T0) -> bool;
37}
38
39#[cfg(feature = "system-collections-generic-treeset_1")]
40impl<T0: ::unity::ClassIdentity> TreeSet_1<T0> {
41    #[doc = "`.ctor()` — no args"]
42    pub fn new() -> Self {
43        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
44            panic!(
45                "{}
46::{}
47 failed to instantiate",
48                ::core::stringify!(TreeSet_1),
49                ::core::stringify!(new),
50            )
51        });
52        <Self as ITreeSet_1Methods<T0>>::ctor(this);
53        this
54    }
55
56    #[doc = "`.ctor(crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>)` — overload selector"]
57    pub fn new_2(comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>) -> Self {
58        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
59            panic!(
60                "{}
61::{}
62 failed to instantiate",
63                ::core::stringify!(TreeSet_1),
64                ::core::stringify!(new_2),
65            )
66        });
67        <Self as ITreeSet_1Methods<T0>>::ctor_2(this, comparer);
68        this
69    }
70}
71
72#[cfg(feature = "system-collections-generic-treeset_1")]
73#[doc(hidden)]
74pub mod prelude {
75    pub use super::{ITreeSet_1, ITreeSet_1Methods, TreeSet_1};
76    #[cfg(feature = "system-collections-generic-sortedset_1")]
77    pub use crate::system::collections::generic::sortedset_1::ISortedSet_1Methods;
78    #[cfg(feature = "system-object")]
79    pub use crate::system::object::IObjectMethods;
80    pub use crate::system::{collections::generic::sortedset_1::ISortedSet_1, object::IObject};
81}