engage/generated/moon_sharp/interpreter/diagnostics/performance_counters/
iperformancestopwatch_interface.rs1#[cfg(feature = "moon_sharp-interpreter-diagnostics-performance_counters-iperformancestopwatch_interface-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/moon_sharp/interpreter/diagnostics/performance_counters/iperformancestopwatch_interface/IPerformanceStopwatch_Interface.md"))]
10 #[::unity::class(namespace = "MoonSharp.Interpreter.Diagnostics.PerformanceCounters", name = "IPerformanceStopwatch")]
11 pub struct IPerformanceStopwatch_Interface {}
12}
13
14#[cfg(feature = "moon_sharp-interpreter-diagnostics-performance_counters-iperformancestopwatch_interface-types")]
15pub use __types::*;
16
17#[cfg(feature = "moon_sharp-interpreter-diagnostics-performance_counters-iperformancestopwatch_interface")]
18pub trait IIPerformanceStopwatch_InterfaceMethods: IIPerformanceStopwatch_Interface {
19 #[doc = "`GetResult()` overload"]
20 fn get_result(self) -> crate::moon_sharp::interpreter::diagnostics::performanceresult::PerformanceResult {
21 unsafe {
22 let __receiver =
23 <IPerformanceStopwatch_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
24 {
25 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
26 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
27 panic!(
28 "unity: virtual slot {}
29 out of range (vtable len {}
30) on the runtime class behind {}
31 (method `{}
32`)",
33 1usize,
34 __vt.len(),
35 <IPerformanceStopwatch_Interface as ::unity::ClassIdentity>::NAME,
36 "GetResult",
37 )
38 });
39 let __inner: extern "C" fn(
40 IPerformanceStopwatch_Interface,
41 ::unity::OptionalMethod,
42 ) -> crate::moon_sharp::interpreter::diagnostics::performanceresult::PerformanceResult = ::core::mem::transmute(__vi.method_ptr);
43 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
44 __inner(__receiver, __mi)
45 }
46 }
47 }
48}
49
50#[cfg(feature = "moon_sharp-interpreter-diagnostics-performance_counters-iperformancestopwatch_interface")]
51impl<__T: IIPerformanceStopwatch_Interface> IIPerformanceStopwatch_InterfaceMethods for __T {}
52
53#[cfg(feature = "moon_sharp-interpreter-diagnostics-performance_counters-iperformancestopwatch_interface")]
54impl IPerformanceStopwatch_Interface {
55 pub fn get_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
56 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
57 }
58}
59
60#[cfg(feature = "moon_sharp-interpreter-diagnostics-performance_counters-iperformancestopwatch_interface")]
61impl IPerformanceStopwatch_Interface {
62 #[doc = "Direct (non-virtual) call to `IPerformanceStopwatch_Interface`'s own `GetResult`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
63 pub unsafe fn get_result(
64 this: impl ::core::convert::Into<::unity::IlInstance>,
65 ) -> crate::moon_sharp::interpreter::diagnostics::performanceresult::PerformanceResult {
66 let __mi = Self::get_result_method_info();
67 let __inner: extern "C" fn(
68 ::unity::IlInstance,
69 ::unity::OptionalMethod,
70 ) -> crate::moon_sharp::interpreter::diagnostics::performanceresult::PerformanceResult = ::core::mem::transmute(__mi.method_ptr);
71 __inner(this.into(), ::core::option::Option::None)
72 }
73}
74
75#[cfg(feature = "moon_sharp-interpreter-diagnostics-performance_counters-iperformancestopwatch_interface")]
76#[doc(hidden)]
77pub mod prelude {
78 pub use super::{IIPerformanceStopwatch_Interface, IIPerformanceStopwatch_InterfaceMethods, IPerformanceStopwatch_Interface};
79}