Skip to main content

engage/generated/moon_sharp/interpreter/serialization/json/
jsonnull.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-serialization-json-jsonnull-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/serialization/json/jsonnull/JsonNull.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter.Serialization.Json", name = "JsonNull")]
12    #[parent(crate::system::object::Object)]
13    pub struct JsonNull {}
14}
15
16#[cfg(feature = "moon_sharp-interpreter-serialization-json-jsonnull-types")]
17pub use __types::*;
18
19#[cfg(feature = "moon_sharp-interpreter-serialization-json-jsonnull")]
20#[doc(hidden)]
21#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
22mod __JsonNull_unity_raw {
23    use super::*;
24    #[doc(hidden)]
25    #[allow(non_snake_case)]
26    pub mod __lookup_is_null {
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(<JsonNull as ::unity::ClassIdentity>::class(), "isNull", 0, param_types, true)
31        });
32        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
33            match &*METHOD {
34                ::core::result::Result::Ok(mi) => *mi,
35                ::core::result::Result::Err(e) => {
36                    panic!(
37                        "method lookup failed: {}
38::{}
39: {}
40",
41                        <JsonNull as ::unity::ClassIdentity>::NAME,
42                        "isNull",
43                        e
44                    )
45                },
46            }
47        }
48    }
49    #[doc(hidden)]
50    #[allow(non_snake_case)]
51    pub mod __lookup_is_json_null {
52        use super::*;
53        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
54            let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
55                &[<crate::moon_sharp::interpreter::dynvalue::DynValue as ::unity::IlType>::il_type()];
56            ::unity::lookup::method_info_on_class_with_signature(<JsonNull as ::unity::ClassIdentity>::class(), "IsJsonNull", 1, param_types, true)
57        });
58        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
59            match &*METHOD {
60                ::core::result::Result::Ok(mi) => *mi,
61                ::core::result::Result::Err(e) => {
62                    panic!(
63                        "method lookup failed: {}
64::{}
65: {}
66",
67                        <JsonNull as ::unity::ClassIdentity>::NAME,
68                        "IsJsonNull",
69                        e
70                    )
71                },
72            }
73        }
74    }
75    #[doc(hidden)]
76    #[allow(non_snake_case)]
77    pub mod __lookup_create {
78        use super::*;
79        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
80            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
81            ::unity::lookup::method_info_on_class_with_signature(<JsonNull as ::unity::ClassIdentity>::class(), "Create", 0, param_types, true)
82        });
83        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84            match &*METHOD {
85                ::core::result::Result::Ok(mi) => *mi,
86                ::core::result::Result::Err(e) => {
87                    panic!(
88                        "method lookup failed: {}
89::{}
90: {}
91",
92                        <JsonNull as ::unity::ClassIdentity>::NAME,
93                        "Create",
94                        e
95                    )
96                },
97            }
98        }
99    }
100    #[doc(hidden)]
101    #[allow(non_snake_case)]
102    pub mod __lookup_ctor {
103        use super::*;
104        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
105            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
106            ::unity::lookup::method_info_on_class_with_signature(<JsonNull as ::unity::ClassIdentity>::class(), ".ctor", 0, param_types, false)
107        });
108        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109            match &*METHOD {
110                ::core::result::Result::Ok(mi) => *mi,
111                ::core::result::Result::Err(e) => {
112                    panic!(
113                        "method lookup failed: {}
114::{}
115: {}
116",
117                        <JsonNull as ::unity::ClassIdentity>::NAME,
118                        ".ctor",
119                        e
120                    )
121                },
122            }
123        }
124    }
125}
126
127#[cfg(feature = "moon_sharp-interpreter-serialization-json-jsonnull")]
128impl JsonNull {
129    #[doc = "`isNull()` overload"]
130    pub fn is_null() -> bool {
131        unsafe {
132            ::unity::il2cpp_call!(__JsonNull_unity_raw::__lookup_is_null::get_method_info().method_ptr,bool;
133            )
134        }
135    }
136
137    #[doc = "`IsJsonNull(crate::moon_sharp::interpreter::dynvalue::DynValue)` overload"]
138    pub fn is_json_null(v: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>) -> bool {
139        unsafe {
140            ::unity::il2cpp_call!(__JsonNull_unity_raw::__lookup_is_json_null::get_method_info().method_ptr,bool;
141(crate::moon_sharp::interpreter::dynvalue::DynValue)::core::convert::Into::into(v))
142        }
143    }
144
145    #[doc = "`Create()` overload"]
146    pub fn create() -> crate::moon_sharp::interpreter::dynvalue::DynValue {
147        unsafe {
148            ::unity::il2cpp_call!(__JsonNull_unity_raw::__lookup_create::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
149            )
150        }
151    }
152}
153
154#[cfg(feature = "moon_sharp-interpreter-serialization-json-jsonnull")]
155pub trait IJsonNullMethods: IJsonNull {
156    #[doc = "`.ctor()` overload"]
157    fn ctor(self) -> () {
158        unsafe {
159            let __receiver = <JsonNull as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160            ::unity::il2cpp_call!(__JsonNull_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
161(JsonNull)__receiver)
162        }
163    }
164}
165
166#[cfg(feature = "moon_sharp-interpreter-serialization-json-jsonnull")]
167impl<__T: IJsonNull> IJsonNullMethods for __T {}
168
169#[cfg(feature = "moon_sharp-interpreter-serialization-json-jsonnull")]
170impl JsonNull {
171    pub fn is_null_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
173    }
174
175    pub fn is_json_null_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
177    }
178
179    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
181    }
182
183    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
185    }
186}
187
188#[cfg(feature = "moon_sharp-interpreter-serialization-json-jsonnull")]
189impl JsonNull {
190    #[doc = "`.ctor()` — no args"]
191    pub fn new() -> Self {
192        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
193            panic!(
194                "{}
195::{}
196 failed to instantiate",
197                ::core::stringify!(JsonNull),
198                ::core::stringify!(new),
199            )
200        });
201        <Self as IJsonNullMethods>::ctor(this);
202        this
203    }
204}
205
206#[cfg(feature = "moon_sharp-interpreter-serialization-json-jsonnull")]
207#[doc(hidden)]
208pub mod prelude {
209    pub use super::{IJsonNull, IJsonNullMethods, JsonNull};
210    pub use crate::system::object::IObject;
211    #[cfg(feature = "system-object")]
212    pub use crate::system::object::IObjectMethods;
213}