Skip to main content

engage/generated/moon_sharp/interpreter/diagnostics/
performanceresult.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-diagnostics-performanceresult-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/diagnostics/performanceresult/PerformanceResult.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter.Diagnostics", name = "PerformanceResult")]
12    #[parent(crate::system::object::Object)]
13    pub struct PerformanceResult {}
14}
15
16#[cfg(feature = "moon_sharp-interpreter-diagnostics-performanceresult-types")]
17pub use __types::*;
18
19#[cfg(feature = "moon_sharp-interpreter-diagnostics-performanceresult")]
20#[doc(hidden)]
21#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
22mod __PerformanceResult_unity_raw {
23    use super::*;
24    #[doc(hidden)]
25    #[allow(non_snake_case)]
26    pub mod __lookup_get_name {
27        use super::*;
28        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
29            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
30            ::unity::lookup::method_info_on_class_with_signature(
31                <PerformanceResult as ::unity::ClassIdentity>::class(),
32                "get_Name",
33                0,
34                param_types,
35                false,
36            )
37        });
38        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
39            match &*METHOD {
40                ::core::result::Result::Ok(mi) => *mi,
41                ::core::result::Result::Err(e) => {
42                    panic!(
43                        "method lookup failed: {}
44::{}
45: {}
46",
47                        <PerformanceResult as ::unity::ClassIdentity>::NAME,
48                        "get_Name",
49                        e
50                    )
51                },
52            }
53        }
54    }
55    #[doc(hidden)]
56    #[allow(non_snake_case)]
57    pub mod __lookup_set_name {
58        use super::*;
59        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
60            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
61            ::unity::lookup::method_info_on_class_with_signature(
62                <PerformanceResult as ::unity::ClassIdentity>::class(),
63                "set_Name",
64                1,
65                param_types,
66                false,
67            )
68        });
69        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70            match &*METHOD {
71                ::core::result::Result::Ok(mi) => *mi,
72                ::core::result::Result::Err(e) => {
73                    panic!(
74                        "method lookup failed: {}
75::{}
76: {}
77",
78                        <PerformanceResult as ::unity::ClassIdentity>::NAME,
79                        "set_Name",
80                        e
81                    )
82                },
83            }
84        }
85    }
86    #[doc(hidden)]
87    #[allow(non_snake_case)]
88    pub mod __lookup_get_counter {
89        use super::*;
90        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
91            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
92            ::unity::lookup::method_info_on_class_with_signature(
93                <PerformanceResult as ::unity::ClassIdentity>::class(),
94                "get_Counter",
95                0,
96                param_types,
97                false,
98            )
99        });
100        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101            match &*METHOD {
102                ::core::result::Result::Ok(mi) => *mi,
103                ::core::result::Result::Err(e) => {
104                    panic!(
105                        "method lookup failed: {}
106::{}
107: {}
108",
109                        <PerformanceResult as ::unity::ClassIdentity>::NAME,
110                        "get_Counter",
111                        e
112                    )
113                },
114            }
115        }
116    }
117    #[doc(hidden)]
118    #[allow(non_snake_case)]
119    pub mod __lookup_set_counter {
120        use super::*;
121        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
122            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i64 as ::unity::IlType>::il_type()];
123            ::unity::lookup::method_info_on_class_with_signature(
124                <PerformanceResult as ::unity::ClassIdentity>::class(),
125                "set_Counter",
126                1,
127                param_types,
128                false,
129            )
130        });
131        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132            match &*METHOD {
133                ::core::result::Result::Ok(mi) => *mi,
134                ::core::result::Result::Err(e) => {
135                    panic!(
136                        "method lookup failed: {}
137::{}
138: {}
139",
140                        <PerformanceResult as ::unity::ClassIdentity>::NAME,
141                        "set_Counter",
142                        e
143                    )
144                },
145            }
146        }
147    }
148    #[doc(hidden)]
149    #[allow(non_snake_case)]
150    pub mod __lookup_get_instances {
151        use super::*;
152        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
153            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
154            ::unity::lookup::method_info_on_class_with_signature(
155                <PerformanceResult as ::unity::ClassIdentity>::class(),
156                "get_Instances",
157                0,
158                param_types,
159                false,
160            )
161        });
162        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163            match &*METHOD {
164                ::core::result::Result::Ok(mi) => *mi,
165                ::core::result::Result::Err(e) => {
166                    panic!(
167                        "method lookup failed: {}
168::{}
169: {}
170",
171                        <PerformanceResult as ::unity::ClassIdentity>::NAME,
172                        "get_Instances",
173                        e
174                    )
175                },
176            }
177        }
178    }
179    #[doc(hidden)]
180    #[allow(non_snake_case)]
181    pub mod __lookup_set_instances {
182        use super::*;
183        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
184            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
185            ::unity::lookup::method_info_on_class_with_signature(
186                <PerformanceResult as ::unity::ClassIdentity>::class(),
187                "set_Instances",
188                1,
189                param_types,
190                false,
191            )
192        });
193        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194            match &*METHOD {
195                ::core::result::Result::Ok(mi) => *mi,
196                ::core::result::Result::Err(e) => {
197                    panic!(
198                        "method lookup failed: {}
199::{}
200: {}
201",
202                        <PerformanceResult as ::unity::ClassIdentity>::NAME,
203                        "set_Instances",
204                        e
205                    )
206                },
207            }
208        }
209    }
210    #[doc(hidden)]
211    #[allow(non_snake_case)]
212    pub mod __lookup_get_global {
213        use super::*;
214        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
215            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
216            ::unity::lookup::method_info_on_class_with_signature(
217                <PerformanceResult as ::unity::ClassIdentity>::class(),
218                "get_Global",
219                0,
220                param_types,
221                false,
222            )
223        });
224        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225            match &*METHOD {
226                ::core::result::Result::Ok(mi) => *mi,
227                ::core::result::Result::Err(e) => {
228                    panic!(
229                        "method lookup failed: {}
230::{}
231: {}
232",
233                        <PerformanceResult as ::unity::ClassIdentity>::NAME,
234                        "get_Global",
235                        e
236                    )
237                },
238            }
239        }
240    }
241    #[doc(hidden)]
242    #[allow(non_snake_case)]
243    pub mod __lookup_set_global {
244        use super::*;
245        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
246            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
247            ::unity::lookup::method_info_on_class_with_signature(
248                <PerformanceResult as ::unity::ClassIdentity>::class(),
249                "set_Global",
250                1,
251                param_types,
252                false,
253            )
254        });
255        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256            match &*METHOD {
257                ::core::result::Result::Ok(mi) => *mi,
258                ::core::result::Result::Err(e) => {
259                    panic!(
260                        "method lookup failed: {}
261::{}
262: {}
263",
264                        <PerformanceResult as ::unity::ClassIdentity>::NAME,
265                        "set_Global",
266                        e
267                    )
268                },
269            }
270        }
271    }
272    #[doc(hidden)]
273    #[allow(non_snake_case)]
274    pub mod __lookup_get_type {
275        use super::*;
276        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
277            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
278            ::unity::lookup::method_info_on_class_with_signature(
279                <PerformanceResult as ::unity::ClassIdentity>::class(),
280                "get_Type",
281                0,
282                param_types,
283                false,
284            )
285        });
286        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287            match &*METHOD {
288                ::core::result::Result::Ok(mi) => *mi,
289                ::core::result::Result::Err(e) => {
290                    panic!(
291                        "method lookup failed: {}
292::{}
293: {}
294",
295                        <PerformanceResult as ::unity::ClassIdentity>::NAME,
296                        "get_Type",
297                        e
298                    )
299                },
300            }
301        }
302    }
303    #[doc(hidden)]
304    #[allow(non_snake_case)]
305    pub mod __lookup_set_type {
306        use super::*;
307        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
308            let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
309                &[<crate::moon_sharp::interpreter::diagnostics::performancecountertype::PerformanceCounterType as ::unity::IlType>::il_type()];
310            ::unity::lookup::method_info_on_class_with_signature(
311                <PerformanceResult as ::unity::ClassIdentity>::class(),
312                "set_Type",
313                1,
314                param_types,
315                false,
316            )
317        });
318        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319            match &*METHOD {
320                ::core::result::Result::Ok(mi) => *mi,
321                ::core::result::Result::Err(e) => {
322                    panic!(
323                        "method lookup failed: {}
324::{}
325: {}
326",
327                        <PerformanceResult as ::unity::ClassIdentity>::NAME,
328                        "set_Type",
329                        e
330                    )
331                },
332            }
333        }
334    }
335    #[doc(hidden)]
336    #[allow(non_snake_case)]
337    pub mod __lookup_performance_counter_type_to_string {
338        use super::*;
339        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
340            let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
341                &[<crate::moon_sharp::interpreter::diagnostics::performancecountertype::PerformanceCounterType as ::unity::IlType>::il_type()];
342            ::unity::lookup::method_info_on_class_with_signature(
343                <PerformanceResult as ::unity::ClassIdentity>::class(),
344                "PerformanceCounterTypeToString",
345                1,
346                param_types,
347                true,
348            )
349        });
350        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351            match &*METHOD {
352                ::core::result::Result::Ok(mi) => *mi,
353                ::core::result::Result::Err(e) => {
354                    panic!(
355                        "method lookup failed: {}
356::{}
357: {}
358",
359                        <PerformanceResult as ::unity::ClassIdentity>::NAME,
360                        "PerformanceCounterTypeToString",
361                        e
362                    )
363                },
364            }
365        }
366    }
367    #[doc(hidden)]
368    #[allow(non_snake_case)]
369    pub mod __lookup_ctor {
370        use super::*;
371        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
372            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
373            ::unity::lookup::method_info_on_class_with_signature(
374                <PerformanceResult as ::unity::ClassIdentity>::class(),
375                ".ctor",
376                0,
377                param_types,
378                false,
379            )
380        });
381        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
382            match &*METHOD {
383                ::core::result::Result::Ok(mi) => *mi,
384                ::core::result::Result::Err(e) => {
385                    panic!(
386                        "method lookup failed: {}
387::{}
388: {}
389",
390                        <PerformanceResult as ::unity::ClassIdentity>::NAME,
391                        ".ctor",
392                        e
393                    )
394                },
395            }
396        }
397    }
398}
399
400#[cfg(feature = "moon_sharp-interpreter-diagnostics-performanceresult")]
401impl PerformanceResult {
402    #[doc = "`PerformanceCounterTypeToString(crate::moon_sharp::interpreter::diagnostics::performancecountertype::PerformanceCounterType)` overload"]
403    pub fn performance_counter_type_to_string(
404        r#type: impl ::core::convert::Into<crate::moon_sharp::interpreter::diagnostics::performancecountertype::PerformanceCounterType>,
405    ) -> ::unity::Il2CppString {
406        unsafe {
407            ::unity::il2cpp_call!(__PerformanceResult_unity_raw::__lookup_performance_counter_type_to_string::get_method_info().method_ptr, ::unity::Il2CppString;
408(crate::moon_sharp::interpreter::diagnostics::performancecountertype::PerformanceCounterType)::core::convert::Into::into(r#type))
409        }
410    }
411}
412
413#[cfg(feature = "moon_sharp-interpreter-diagnostics-performanceresult")]
414pub trait IPerformanceResultMethods: IPerformanceResult {
415    #[doc = "`get_Name()` overload"]
416    fn get_name(self) -> ::unity::Il2CppString {
417        unsafe {
418            let __receiver = <PerformanceResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
419            ::unity::il2cpp_call!(__PerformanceResult_unity_raw::__lookup_get_name::get_method_info().method_ptr, ::unity::Il2CppString;
420(PerformanceResult)__receiver)
421        }
422    }
423    #[doc = "`set_Name(::unity::Il2CppString)` overload"]
424    fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
425        unsafe {
426            let __receiver = <PerformanceResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
427            ::unity::il2cpp_call!(__PerformanceResult_unity_raw::__lookup_set_name::get_method_info().method_ptr,();
428(PerformanceResult)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
429        }
430    }
431    #[doc = "`get_Counter()` overload"]
432    fn get_counter(self) -> i64 {
433        unsafe {
434            let __receiver = <PerformanceResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
435            ::unity::il2cpp_call!(__PerformanceResult_unity_raw::__lookup_get_counter::get_method_info().method_ptr,i64;
436(PerformanceResult)__receiver)
437        }
438    }
439    #[doc = "`set_Counter(i64)` overload"]
440    fn set_counter(self, value: impl ::core::convert::Into<i64>) -> () {
441        unsafe {
442            let __receiver = <PerformanceResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
443            ::unity::il2cpp_call!(__PerformanceResult_unity_raw::__lookup_set_counter::get_method_info().method_ptr,();
444(PerformanceResult)__receiver,(i64)::core::convert::Into::into(value))
445        }
446    }
447    #[doc = "`get_Instances()` overload"]
448    fn get_instances(self) -> i32 {
449        unsafe {
450            let __receiver = <PerformanceResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
451            ::unity::il2cpp_call!(__PerformanceResult_unity_raw::__lookup_get_instances::get_method_info().method_ptr,i32;
452(PerformanceResult)__receiver)
453        }
454    }
455    #[doc = "`set_Instances(i32)` overload"]
456    fn set_instances(self, value: impl ::core::convert::Into<i32>) -> () {
457        unsafe {
458            let __receiver = <PerformanceResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
459            ::unity::il2cpp_call!(__PerformanceResult_unity_raw::__lookup_set_instances::get_method_info().method_ptr,();
460(PerformanceResult)__receiver,(i32)::core::convert::Into::into(value))
461        }
462    }
463    #[doc = "`get_Global()` overload"]
464    fn get_global(self) -> bool {
465        unsafe {
466            let __receiver = <PerformanceResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
467            ::unity::il2cpp_call!(__PerformanceResult_unity_raw::__lookup_get_global::get_method_info().method_ptr,bool;
468(PerformanceResult)__receiver)
469        }
470    }
471    #[doc = "`set_Global(bool)` overload"]
472    fn set_global(self, value: impl ::core::convert::Into<bool>) -> () {
473        unsafe {
474            let __receiver = <PerformanceResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
475            ::unity::il2cpp_call!(__PerformanceResult_unity_raw::__lookup_set_global::get_method_info().method_ptr,();
476(PerformanceResult)__receiver,(bool)::core::convert::Into::into(value))
477        }
478    }
479    #[doc = "`get_Type()` overload"]
480    fn get_type(self) -> crate::moon_sharp::interpreter::diagnostics::performancecountertype::PerformanceCounterType {
481        unsafe {
482            let __receiver = <PerformanceResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
483            ::unity::il2cpp_call!(__PerformanceResult_unity_raw::__lookup_get_type::get_method_info().method_ptr,crate::moon_sharp::interpreter::diagnostics::performancecountertype::PerformanceCounterType;
484(PerformanceResult)__receiver)
485        }
486    }
487    #[doc = "`set_Type(crate::moon_sharp::interpreter::diagnostics::performancecountertype::PerformanceCounterType)` overload"]
488    fn set_type(
489        self,
490        value: impl ::core::convert::Into<crate::moon_sharp::interpreter::diagnostics::performancecountertype::PerformanceCounterType>,
491    ) -> () {
492        unsafe {
493            let __receiver = <PerformanceResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
494            ::unity::il2cpp_call!(__PerformanceResult_unity_raw::__lookup_set_type::get_method_info().method_ptr,();
495(PerformanceResult)__receiver,(crate::moon_sharp::interpreter::diagnostics::performancecountertype::PerformanceCounterType)::core::convert::Into::into(value))
496        }
497    }
498    #[doc = "`ToString()` overload"]
499    fn to_string(self) -> ::unity::Il2CppString {
500        unsafe {
501            let __receiver = <PerformanceResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
502            {
503                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
504                let __vi = *__vt.get(3usize).unwrap_or_else(|| {
505                    panic!(
506                        "unity: virtual slot {}
507 out of range (vtable len {}
508) on the runtime class behind {}
509 (method `{}
510`)",
511                        3usize,
512                        __vt.len(),
513                        <PerformanceResult as ::unity::ClassIdentity>::NAME,
514                        "ToString",
515                    )
516                });
517                let __inner: extern "C" fn(PerformanceResult, ::unity::OptionalMethod) -> ::unity::Il2CppString =
518                    ::core::mem::transmute(__vi.method_ptr);
519                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
520                __inner(__receiver, __mi)
521            }
522        }
523    }
524    #[doc = "`.ctor()` overload"]
525    fn ctor(self) -> () {
526        unsafe {
527            let __receiver = <PerformanceResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
528            ::unity::il2cpp_call!(__PerformanceResult_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
529(PerformanceResult)__receiver)
530        }
531    }
532}
533
534#[cfg(feature = "moon_sharp-interpreter-diagnostics-performanceresult")]
535impl<__T: IPerformanceResult> IPerformanceResultMethods for __T {}
536
537#[cfg(feature = "moon_sharp-interpreter-diagnostics-performanceresult")]
538impl PerformanceResult {
539    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
540        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
541    }
542
543    pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
544        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
545    }
546
547    pub fn get_counter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
548        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
549    }
550
551    pub fn set_counter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
552        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
553    }
554
555    pub fn get_instances_method_info() -> &'static ::unity::il2cpp::MethodInfo {
556        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
557    }
558
559    pub fn set_instances_method_info() -> &'static ::unity::il2cpp::MethodInfo {
560        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
561    }
562
563    pub fn get_global_method_info() -> &'static ::unity::il2cpp::MethodInfo {
564        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
565    }
566
567    pub fn set_global_method_info() -> &'static ::unity::il2cpp::MethodInfo {
568        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
569    }
570
571    pub fn get_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
572        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
573    }
574
575    pub fn set_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
576        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
577    }
578
579    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
580        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
581    }
582
583    pub fn performance_counter_type_to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
584        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
585    }
586
587    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
588        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
589    }
590}
591
592#[cfg(feature = "moon_sharp-interpreter-diagnostics-performanceresult")]
593impl PerformanceResult {
594    #[doc = "Direct (non-virtual) call to `PerformanceResult`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
595    pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
596        let __mi = Self::to_string_method_info();
597        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
598        __inner(this.into(), ::core::option::Option::None)
599    }
600}
601
602#[cfg(feature = "moon_sharp-interpreter-diagnostics-performanceresult")]
603impl PerformanceResult {
604    #[doc = "`.ctor()` — no args"]
605    pub fn new() -> Self {
606        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
607            panic!(
608                "{}
609::{}
610 failed to instantiate",
611                ::core::stringify!(PerformanceResult),
612                ::core::stringify!(new),
613            )
614        });
615        <Self as IPerformanceResultMethods>::ctor(this);
616        this
617    }
618}
619
620#[cfg(feature = "moon_sharp-interpreter-diagnostics-performanceresult")]
621#[doc(hidden)]
622pub mod prelude {
623    pub use super::{IPerformanceResult, IPerformanceResultMethods, PerformanceResult};
624    pub use crate::system::object::IObject;
625    #[cfg(feature = "system-object")]
626    pub use crate::system::object::IObjectMethods;
627}