Skip to main content

engage/generated/moon_sharp/interpreter/
tailcalldata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-tailcalldata-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/tailcalldata/TailCallData.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter", name = "TailCallData")]
12    #[parent(crate::system::object::Object)]
13    pub struct TailCallData {}
14}
15
16#[cfg(feature = "moon_sharp-interpreter-tailcalldata-types")]
17pub use __types::*;
18
19#[cfg(feature = "moon_sharp-interpreter-tailcalldata")]
20#[doc(hidden)]
21#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
22mod __TailCallData_unity_raw {
23    use super::*;
24    #[doc(hidden)]
25    #[allow(non_snake_case)]
26    pub mod __lookup_get_function {
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                <TailCallData as ::unity::ClassIdentity>::class(),
32                "get_Function",
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                        <TailCallData as ::unity::ClassIdentity>::NAME,
48                        "get_Function",
49                        e
50                    )
51                },
52            }
53        }
54    }
55    #[doc(hidden)]
56    #[allow(non_snake_case)]
57    pub mod __lookup_set_function {
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] =
61                &[<crate::moon_sharp::interpreter::dynvalue::DynValue as ::unity::IlType>::il_type()];
62            ::unity::lookup::method_info_on_class_with_signature(
63                <TailCallData as ::unity::ClassIdentity>::class(),
64                "set_Function",
65                1,
66                param_types,
67                false,
68            )
69        });
70        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
71            match &*METHOD {
72                ::core::result::Result::Ok(mi) => *mi,
73                ::core::result::Result::Err(e) => {
74                    panic!(
75                        "method lookup failed: {}
76::{}
77: {}
78",
79                        <TailCallData as ::unity::ClassIdentity>::NAME,
80                        "set_Function",
81                        e
82                    )
83                },
84            }
85        }
86    }
87    #[doc(hidden)]
88    #[allow(non_snake_case)]
89    pub mod __lookup_get_args {
90        use super::*;
91        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
92            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
93            ::unity::lookup::method_info_on_class_with_signature(<TailCallData as ::unity::ClassIdentity>::class(), "get_Args", 0, param_types, false)
94        });
95        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96            match &*METHOD {
97                ::core::result::Result::Ok(mi) => *mi,
98                ::core::result::Result::Err(e) => {
99                    panic!(
100                        "method lookup failed: {}
101::{}
102: {}
103",
104                        <TailCallData as ::unity::ClassIdentity>::NAME,
105                        "get_Args",
106                        e
107                    )
108                },
109            }
110        }
111    }
112    #[doc(hidden)]
113    #[allow(non_snake_case)]
114    pub mod __lookup_set_args {
115        use super::*;
116        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
117            let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
118                &[<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue> as ::unity::IlType>::il_type()];
119            ::unity::lookup::method_info_on_class_with_signature(<TailCallData as ::unity::ClassIdentity>::class(), "set_Args", 1, param_types, false)
120        });
121        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122            match &*METHOD {
123                ::core::result::Result::Ok(mi) => *mi,
124                ::core::result::Result::Err(e) => {
125                    panic!(
126                        "method lookup failed: {}
127::{}
128: {}
129",
130                        <TailCallData as ::unity::ClassIdentity>::NAME,
131                        "set_Args",
132                        e
133                    )
134                },
135            }
136        }
137    }
138    #[doc(hidden)]
139    #[allow(non_snake_case)]
140    pub mod __lookup_get_continuation {
141        use super::*;
142        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
143            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
144            ::unity::lookup::method_info_on_class_with_signature(
145                <TailCallData as ::unity::ClassIdentity>::class(),
146                "get_Continuation",
147                0,
148                param_types,
149                false,
150            )
151        });
152        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153            match &*METHOD {
154                ::core::result::Result::Ok(mi) => *mi,
155                ::core::result::Result::Err(e) => {
156                    panic!(
157                        "method lookup failed: {}
158::{}
159: {}
160",
161                        <TailCallData as ::unity::ClassIdentity>::NAME,
162                        "get_Continuation",
163                        e
164                    )
165                },
166            }
167        }
168    }
169    #[doc(hidden)]
170    #[allow(non_snake_case)]
171    pub mod __lookup_set_continuation {
172        use super::*;
173        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
174            let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
175                &[<crate::moon_sharp::interpreter::callbackfunction::CallbackFunction as ::unity::IlType>::il_type()];
176            ::unity::lookup::method_info_on_class_with_signature(
177                <TailCallData as ::unity::ClassIdentity>::class(),
178                "set_Continuation",
179                1,
180                param_types,
181                false,
182            )
183        });
184        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185            match &*METHOD {
186                ::core::result::Result::Ok(mi) => *mi,
187                ::core::result::Result::Err(e) => {
188                    panic!(
189                        "method lookup failed: {}
190::{}
191: {}
192",
193                        <TailCallData as ::unity::ClassIdentity>::NAME,
194                        "set_Continuation",
195                        e
196                    )
197                },
198            }
199        }
200    }
201    #[doc(hidden)]
202    #[allow(non_snake_case)]
203    pub mod __lookup_get_error_handler {
204        use super::*;
205        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
206            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
207            ::unity::lookup::method_info_on_class_with_signature(
208                <TailCallData as ::unity::ClassIdentity>::class(),
209                "get_ErrorHandler",
210                0,
211                param_types,
212                false,
213            )
214        });
215        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216            match &*METHOD {
217                ::core::result::Result::Ok(mi) => *mi,
218                ::core::result::Result::Err(e) => {
219                    panic!(
220                        "method lookup failed: {}
221::{}
222: {}
223",
224                        <TailCallData as ::unity::ClassIdentity>::NAME,
225                        "get_ErrorHandler",
226                        e
227                    )
228                },
229            }
230        }
231    }
232    #[doc(hidden)]
233    #[allow(non_snake_case)]
234    pub mod __lookup_set_error_handler {
235        use super::*;
236        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
237            let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
238                &[<crate::moon_sharp::interpreter::callbackfunction::CallbackFunction as ::unity::IlType>::il_type()];
239            ::unity::lookup::method_info_on_class_with_signature(
240                <TailCallData as ::unity::ClassIdentity>::class(),
241                "set_ErrorHandler",
242                1,
243                param_types,
244                false,
245            )
246        });
247        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248            match &*METHOD {
249                ::core::result::Result::Ok(mi) => *mi,
250                ::core::result::Result::Err(e) => {
251                    panic!(
252                        "method lookup failed: {}
253::{}
254: {}
255",
256                        <TailCallData as ::unity::ClassIdentity>::NAME,
257                        "set_ErrorHandler",
258                        e
259                    )
260                },
261            }
262        }
263    }
264    #[doc(hidden)]
265    #[allow(non_snake_case)]
266    pub mod __lookup_get_error_handler_before_unwind {
267        use super::*;
268        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
269            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
270            ::unity::lookup::method_info_on_class_with_signature(
271                <TailCallData as ::unity::ClassIdentity>::class(),
272                "get_ErrorHandlerBeforeUnwind",
273                0,
274                param_types,
275                false,
276            )
277        });
278        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279            match &*METHOD {
280                ::core::result::Result::Ok(mi) => *mi,
281                ::core::result::Result::Err(e) => {
282                    panic!(
283                        "method lookup failed: {}
284::{}
285: {}
286",
287                        <TailCallData as ::unity::ClassIdentity>::NAME,
288                        "get_ErrorHandlerBeforeUnwind",
289                        e
290                    )
291                },
292            }
293        }
294    }
295    #[doc(hidden)]
296    #[allow(non_snake_case)]
297    pub mod __lookup_set_error_handler_before_unwind {
298        use super::*;
299        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
300            let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
301                &[<crate::moon_sharp::interpreter::dynvalue::DynValue as ::unity::IlType>::il_type()];
302            ::unity::lookup::method_info_on_class_with_signature(
303                <TailCallData as ::unity::ClassIdentity>::class(),
304                "set_ErrorHandlerBeforeUnwind",
305                1,
306                param_types,
307                false,
308            )
309        });
310        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311            match &*METHOD {
312                ::core::result::Result::Ok(mi) => *mi,
313                ::core::result::Result::Err(e) => {
314                    panic!(
315                        "method lookup failed: {}
316::{}
317: {}
318",
319                        <TailCallData as ::unity::ClassIdentity>::NAME,
320                        "set_ErrorHandlerBeforeUnwind",
321                        e
322                    )
323                },
324            }
325        }
326    }
327    #[doc(hidden)]
328    #[allow(non_snake_case)]
329    pub mod __lookup_ctor {
330        use super::*;
331        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
332            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
333            ::unity::lookup::method_info_on_class_with_signature(<TailCallData as ::unity::ClassIdentity>::class(), ".ctor", 0, param_types, false)
334        });
335        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
336            match &*METHOD {
337                ::core::result::Result::Ok(mi) => *mi,
338                ::core::result::Result::Err(e) => {
339                    panic!(
340                        "method lookup failed: {}
341::{}
342: {}
343",
344                        <TailCallData as ::unity::ClassIdentity>::NAME,
345                        ".ctor",
346                        e
347                    )
348                },
349            }
350        }
351    }
352}
353
354#[cfg(feature = "moon_sharp-interpreter-tailcalldata")]
355pub trait ITailCallDataMethods: ITailCallData {
356    #[doc = "`get_Function()` overload"]
357    fn get_function(self) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
358        unsafe {
359            let __receiver = <TailCallData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
360            ::unity::il2cpp_call!(__TailCallData_unity_raw::__lookup_get_function::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
361(TailCallData)__receiver)
362        }
363    }
364    #[doc = "`set_Function(crate::moon_sharp::interpreter::dynvalue::DynValue)` overload"]
365    fn set_function(self, value: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>) -> () {
366        unsafe {
367            let __receiver = <TailCallData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
368            ::unity::il2cpp_call!(__TailCallData_unity_raw::__lookup_set_function::get_method_info().method_ptr,();
369(TailCallData)__receiver,(crate::moon_sharp::interpreter::dynvalue::DynValue)::core::convert::Into::into(value))
370        }
371    }
372    #[doc = "`get_Args()` overload"]
373    fn get_args(self) -> ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue> {
374        unsafe {
375            let __receiver = <TailCallData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
376            ::unity::il2cpp_call!(__TailCallData_unity_raw::__lookup_get_args::get_method_info().method_ptr, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue> ;
377(TailCallData)__receiver)
378        }
379    }
380    #[doc = "`set_Args(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
381    fn set_args(self, value: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
382        unsafe {
383            let __receiver = <TailCallData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
384            ::unity::il2cpp_call!(__TailCallData_unity_raw::__lookup_set_args::get_method_info().method_ptr,();
385(TailCallData)__receiver,(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(value))
386        }
387    }
388    #[doc = "`get_Continuation()` overload"]
389    fn get_continuation(self) -> crate::moon_sharp::interpreter::callbackfunction::CallbackFunction {
390        unsafe {
391            let __receiver = <TailCallData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
392            ::unity::il2cpp_call!(__TailCallData_unity_raw::__lookup_get_continuation::get_method_info().method_ptr,crate::moon_sharp::interpreter::callbackfunction::CallbackFunction;
393(TailCallData)__receiver)
394        }
395    }
396    #[doc = "`set_Continuation(crate::moon_sharp::interpreter::callbackfunction::CallbackFunction)` overload"]
397    fn set_continuation(self, value: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackfunction::CallbackFunction>) -> () {
398        unsafe {
399            let __receiver = <TailCallData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
400            ::unity::il2cpp_call!(__TailCallData_unity_raw::__lookup_set_continuation::get_method_info().method_ptr,();
401(TailCallData)__receiver,(crate::moon_sharp::interpreter::callbackfunction::CallbackFunction)::core::convert::Into::into(value))
402        }
403    }
404    #[doc = "`get_ErrorHandler()` overload"]
405    fn get_error_handler(self) -> crate::moon_sharp::interpreter::callbackfunction::CallbackFunction {
406        unsafe {
407            let __receiver = <TailCallData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
408            ::unity::il2cpp_call!(__TailCallData_unity_raw::__lookup_get_error_handler::get_method_info().method_ptr,crate::moon_sharp::interpreter::callbackfunction::CallbackFunction;
409(TailCallData)__receiver)
410        }
411    }
412    #[doc = "`set_ErrorHandler(crate::moon_sharp::interpreter::callbackfunction::CallbackFunction)` overload"]
413    fn set_error_handler(self, value: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackfunction::CallbackFunction>) -> () {
414        unsafe {
415            let __receiver = <TailCallData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
416            ::unity::il2cpp_call!(__TailCallData_unity_raw::__lookup_set_error_handler::get_method_info().method_ptr,();
417(TailCallData)__receiver,(crate::moon_sharp::interpreter::callbackfunction::CallbackFunction)::core::convert::Into::into(value))
418        }
419    }
420    #[doc = "`get_ErrorHandlerBeforeUnwind()` overload"]
421    fn get_error_handler_before_unwind(self) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
422        unsafe {
423            let __receiver = <TailCallData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
424            ::unity::il2cpp_call!(__TailCallData_unity_raw::__lookup_get_error_handler_before_unwind::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
425(TailCallData)__receiver)
426        }
427    }
428    #[doc = "`set_ErrorHandlerBeforeUnwind(crate::moon_sharp::interpreter::dynvalue::DynValue)` overload"]
429    fn set_error_handler_before_unwind(self, value: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>) -> () {
430        unsafe {
431            let __receiver = <TailCallData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
432            ::unity::il2cpp_call!(__TailCallData_unity_raw::__lookup_set_error_handler_before_unwind::get_method_info().method_ptr,();
433(TailCallData)__receiver,(crate::moon_sharp::interpreter::dynvalue::DynValue)::core::convert::Into::into(value))
434        }
435    }
436    #[doc = "`.ctor()` overload"]
437    fn ctor(self) -> () {
438        unsafe {
439            let __receiver = <TailCallData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
440            ::unity::il2cpp_call!(__TailCallData_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
441(TailCallData)__receiver)
442        }
443    }
444}
445
446#[cfg(feature = "moon_sharp-interpreter-tailcalldata")]
447impl<__T: ITailCallData> ITailCallDataMethods for __T {}
448
449#[cfg(feature = "moon_sharp-interpreter-tailcalldata")]
450impl TailCallData {
451    pub fn get_function_method_info() -> &'static ::unity::il2cpp::MethodInfo {
452        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
453    }
454
455    pub fn set_function_method_info() -> &'static ::unity::il2cpp::MethodInfo {
456        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
457    }
458
459    pub fn get_args_method_info() -> &'static ::unity::il2cpp::MethodInfo {
460        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
461    }
462
463    pub fn set_args_method_info() -> &'static ::unity::il2cpp::MethodInfo {
464        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
465    }
466
467    pub fn get_continuation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
468        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
469    }
470
471    pub fn set_continuation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
472        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
473    }
474
475    pub fn get_error_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
476        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
477    }
478
479    pub fn set_error_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
480        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
481    }
482
483    pub fn get_error_handler_before_unwind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
484        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
485    }
486
487    pub fn set_error_handler_before_unwind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
488        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
489    }
490
491    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
492        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
493    }
494}
495
496#[cfg(feature = "moon_sharp-interpreter-tailcalldata")]
497impl TailCallData {
498    #[doc = "`.ctor()` — no args"]
499    pub fn new() -> Self {
500        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
501            panic!(
502                "{}
503::{}
504 failed to instantiate",
505                ::core::stringify!(TailCallData),
506                ::core::stringify!(new),
507            )
508        });
509        <Self as ITailCallDataMethods>::ctor(this);
510        this
511    }
512}
513
514#[cfg(feature = "moon_sharp-interpreter-tailcalldata")]
515#[doc(hidden)]
516pub mod prelude {
517    pub use super::{ITailCallData, ITailCallDataMethods, TailCallData};
518    pub use crate::system::object::IObject;
519    #[cfg(feature = "system-object")]
520    pub use crate::system::object::IObjectMethods;
521}