engage/generated/system/collections/
dictionaryentry.rs1#[cfg(feature = "system-collections-dictionaryentry-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/dictionaryentry/DictionaryEntry.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct DictionaryEntry {
17 pub key: ::unity::IlInstance,
18 pub value: ::unity::IlInstance,
19 }
20 impl ::unity::ClassIdentity for DictionaryEntry {
21 const NAME: &'static str = "DictionaryEntry";
22 const NAMESPACE: &'static str = "System.Collections";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27 }
28 }
29 impl ::unity::IlType for DictionaryEntry {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34}
35
36#[cfg(feature = "system-collections-dictionaryentry-types")]
37pub use __types::*;
38
39#[cfg(feature = "system-collections-dictionaryentry")]
40impl DictionaryEntry {
41 #[doc = "`.ctor(crate::system::object::Object, crate::system::object::Object)` overload"]
42 pub fn ctor(
43 &mut self,
44 key: impl ::core::convert::Into<crate::system::object::Object>,
45 value: impl ::core::convert::Into<crate::system::object::Object>,
46 ) -> () {
47 unsafe {
48 ::unity::il2cpp_call!((::unity::module_base()+0x363c650usize)as*mut u8,();
49(*mut DictionaryEntry)self as*mut DictionaryEntry,(crate::system::object::Object)::core::convert::Into::into(key),(crate::system::object::Object)::core::convert::Into::into(value))
50 }
51 }
52
53 #[doc = "`get_Key()` overload"]
54 pub fn get_key(&mut self) -> crate::system::object::Object {
55 unsafe {
56 ::unity::il2cpp_call!((::unity::module_base()+0x363c690usize)as*mut u8,crate::system::object::Object;
57(*mut DictionaryEntry)self as*mut DictionaryEntry)
58 }
59 }
60
61 #[doc = "`get_Value()` overload"]
62 pub fn get_value(&mut self) -> crate::system::object::Object {
63 unsafe {
64 ::unity::il2cpp_call!((::unity::module_base()+0x363c6a0usize)as*mut u8,crate::system::object::Object;
65(*mut DictionaryEntry)self as*mut DictionaryEntry)
66 }
67 }
68}
69
70#[cfg(feature = "system-collections-dictionaryentry")]
71impl DictionaryEntry {
72 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
74 }
75
76 pub fn get_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
78 }
79
80 pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
81 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
82 }
83}
84
85#[cfg(feature = "system-collections-dictionaryentry")]
86#[doc(hidden)]
87pub mod prelude {
88 pub use super::DictionaryEntry;
89 #[cfg(feature = "system-object")]
90 pub use crate::system::object::IObjectMethods;
91 #[cfg(feature = "system-valuetype")]
92 pub use crate::system::valuetype::IValueTypeMethods;
93 pub use crate::system::{object::IObject, valuetype::IValueType};
94}