engage/generated/system/collections/
idictionaryenumerator.rs1#[cfg(feature = "system-collections-idictionaryenumerator-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8
9 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/idictionaryenumerator/IDictionaryEnumerator.md"))]
10 #[::unity::class(namespace = "System.Collections", name = "IDictionaryEnumerator")]
11 pub struct IDictionaryEnumerator {}
12}
13
14#[cfg(feature = "system-collections-idictionaryenumerator-types")]
15pub use __types::*;
16
17#[cfg(feature = "system-collections-idictionaryenumerator")]
18pub trait IIDictionaryEnumeratorMethods: IIDictionaryEnumerator {
19 #[doc = "`get_Key()` overload"]
20 fn get_key(self) -> crate::system::object::Object {
21 unsafe {
22 let __receiver = <IDictionaryEnumerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
23 {
24 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
25 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
26 panic!(
27 "unity: virtual slot {}
28 out of range (vtable len {}
29) on the runtime class behind {}
30 (method `{}
31`)",
32 0usize,
33 __vt.len(),
34 <IDictionaryEnumerator as ::unity::ClassIdentity>::NAME,
35 "get_Key",
36 )
37 });
38 let __inner: extern "C" fn(IDictionaryEnumerator, ::unity::OptionalMethod) -> crate::system::object::Object =
39 ::core::mem::transmute(__vi.method_ptr);
40 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
41 __inner(__receiver, __mi)
42 }
43 }
44 }
45 #[doc = "`get_Value()` overload"]
46 fn get_value(self) -> crate::system::object::Object {
47 unsafe {
48 let __receiver = <IDictionaryEnumerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 {
50 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
51 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
52 panic!(
53 "unity: virtual slot {}
54 out of range (vtable len {}
55) on the runtime class behind {}
56 (method `{}
57`)",
58 1usize,
59 __vt.len(),
60 <IDictionaryEnumerator as ::unity::ClassIdentity>::NAME,
61 "get_Value",
62 )
63 });
64 let __inner: extern "C" fn(IDictionaryEnumerator, ::unity::OptionalMethod) -> crate::system::object::Object =
65 ::core::mem::transmute(__vi.method_ptr);
66 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
67 __inner(__receiver, __mi)
68 }
69 }
70 }
71 #[doc = "`get_Entry()` overload"]
72 fn get_entry(self) -> crate::system::collections::dictionaryentry::DictionaryEntry {
73 unsafe {
74 let __receiver = <IDictionaryEnumerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75 {
76 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
77 let __vi = *__vt.get(2usize).unwrap_or_else(|| {
78 panic!(
79 "unity: virtual slot {}
80 out of range (vtable len {}
81) on the runtime class behind {}
82 (method `{}
83`)",
84 2usize,
85 __vt.len(),
86 <IDictionaryEnumerator as ::unity::ClassIdentity>::NAME,
87 "get_Entry",
88 )
89 });
90 let __inner: extern "C" fn(
91 IDictionaryEnumerator,
92 ::unity::OptionalMethod,
93 ) -> crate::system::collections::dictionaryentry::DictionaryEntry = ::core::mem::transmute(__vi.method_ptr);
94 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
95 __inner(__receiver, __mi)
96 }
97 }
98 }
99}
100
101#[cfg(feature = "system-collections-idictionaryenumerator")]
102impl<__T: IIDictionaryEnumerator> IIDictionaryEnumeratorMethods for __T {}
103
104#[cfg(feature = "system-collections-idictionaryenumerator")]
105impl IDictionaryEnumerator {
106 pub fn get_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
108 }
109
110 pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
112 }
113
114 pub fn get_entry_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
116 }
117}
118
119#[cfg(feature = "system-collections-idictionaryenumerator")]
120impl IDictionaryEnumerator {
121 #[doc = "Direct (non-virtual) call to `IDictionaryEnumerator`'s own `get_Key`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
122 pub unsafe fn get_key(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
123 let __mi = Self::get_key_method_info();
124 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
125 ::core::mem::transmute(__mi.method_ptr);
126 __inner(this.into(), ::core::option::Option::None)
127 }
128
129 #[doc = "Direct (non-virtual) call to `IDictionaryEnumerator`'s own `get_Value`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
130 pub unsafe fn get_value(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
131 let __mi = Self::get_value_method_info();
132 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
133 ::core::mem::transmute(__mi.method_ptr);
134 __inner(this.into(), ::core::option::Option::None)
135 }
136
137 #[doc = "Direct (non-virtual) call to `IDictionaryEnumerator`'s own `get_Entry`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
138 pub unsafe fn get_entry(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::collections::dictionaryentry::DictionaryEntry {
139 let __mi = Self::get_entry_method_info();
140 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::collections::dictionaryentry::DictionaryEntry =
141 ::core::mem::transmute(__mi.method_ptr);
142 __inner(this.into(), ::core::option::Option::None)
143 }
144}
145
146#[cfg(feature = "system-collections-idictionaryenumerator")]
147#[doc(hidden)]
148pub mod prelude {
149 pub use super::{IDictionaryEnumerator, IIDictionaryEnumerator, IIDictionaryEnumeratorMethods};
150}