Skip to main content

engage/generated/moon_sharp/interpreter/data_structs/
multidictionary_2.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-data_structs-multidictionary_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/moon_sharp/interpreter/data_structs/multidictionary_2/MultiDictionary_2.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter.DataStructs", name = "MultiDictionary`2")]
12    #[parent(crate::system::object::Object)]
13    pub struct MultiDictionary_2<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> {
14        #[rename(name = "m_Map")]
15        pub m_map: crate::system::collections::generic::dictionary_2::Dictionary_2<T0, crate::system::collections::generic::list_1::List_1<T1>>,
16        #[rename(name = "m_DefaultRet")]
17        pub m_default_ret: ::unity::Array<T1>,
18    }
19}
20
21#[cfg(feature = "moon_sharp-interpreter-data_structs-multidictionary_2-types")]
22pub use __types::*;
23
24#[cfg(feature = "moon_sharp-interpreter-data_structs-multidictionary_2")]
25#[::unity::methods]
26impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> MultiDictionary_2<T0, T1> {
27    #[doc = "`.ctor()` overload"]
28    #[method(name = ".ctor", args = 0)]
29    pub fn ctor(self) -> ();
30
31    #[doc = "`.ctor(crate::system::collections::generic::iequalitycomparer_1_interface::IEqualityComparer_1_Interface<T0>)` overload"]
32    #[method(name = ".ctor", args = 1)]
33    pub fn ctor_2(self, eq_comparer: crate::system::collections::generic::iequalitycomparer_1_interface::IEqualityComparer_1_Interface<T0>) -> ();
34
35    #[doc = "`Add(T0, T1)` overload"]
36    #[method(name = "Add", args = 2)]
37    pub fn add(self, key: T0, value: T1) -> bool;
38
39    #[doc = "`Find(T0)` overload"]
40    #[method(name = "Find", args = 1)]
41    pub fn find(self, key: T0) -> crate::system::collections::generic::ienumerable_1::IEnumerable_1<T1>;
42
43    #[doc = "`ContainsKey(T0)` overload"]
44    #[method(name = "ContainsKey", args = 1)]
45    pub fn contains_key(self, key: T0) -> bool;
46
47    #[doc = "`get_Keys()` overload"]
48    #[method(name = "get_Keys", args = 0)]
49    pub fn get_keys(self) -> crate::system::collections::generic::ienumerable_1::IEnumerable_1<T0>;
50
51    #[doc = "`Clear()` overload"]
52    #[method(name = "Clear", args = 0)]
53    pub fn clear(self) -> ();
54
55    #[doc = "`Remove(T0)` overload"]
56    #[method(name = "Remove", args = 1)]
57    pub fn remove(self, key: T0) -> ();
58
59    #[doc = "`RemoveValue(T0, T1)` overload"]
60    #[method(name = "RemoveValue", args = 2)]
61    pub fn remove_value(self, key: T0, value: T1) -> bool;
62}
63
64#[cfg(feature = "moon_sharp-interpreter-data_structs-multidictionary_2")]
65impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> MultiDictionary_2<T0, T1> {
66    #[doc = "`.ctor()` — no args"]
67    pub fn new() -> Self {
68        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
69            panic!(
70                "{}
71::{}
72 failed to instantiate",
73                ::core::stringify!(MultiDictionary_2),
74                ::core::stringify!(new),
75            )
76        });
77        <Self as IMultiDictionary_2Methods<T0, T1>>::ctor(this);
78        this
79    }
80
81    #[doc = "`.ctor(crate::system::collections::generic::iequalitycomparer_1_interface::IEqualityComparer_1_Interface<T0>)` — overload selector"]
82    pub fn new_2(eq_comparer: crate::system::collections::generic::iequalitycomparer_1_interface::IEqualityComparer_1_Interface<T0>) -> Self {
83        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
84            panic!(
85                "{}
86::{}
87 failed to instantiate",
88                ::core::stringify!(MultiDictionary_2),
89                ::core::stringify!(new_2),
90            )
91        });
92        <Self as IMultiDictionary_2Methods<T0, T1>>::ctor_2(this, eq_comparer);
93        this
94    }
95}
96
97#[cfg(feature = "moon_sharp-interpreter-data_structs-multidictionary_2")]
98#[doc(hidden)]
99pub mod prelude {
100    pub use super::{IMultiDictionary_2, IMultiDictionary_2Methods, MultiDictionary_2};
101    pub use crate::system::object::IObject;
102    #[cfg(feature = "system-object")]
103    pub use crate::system::object::IObjectMethods;
104}