Skip to main content

engage/generated/unity_engine/bindings/
notnullattribute.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-bindings-notnullattribute-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/unity_engine/bindings/notnullattribute/NotNullAttribute.md"))]
10    #[::unity::class(namespace = "UnityEngine.Bindings", name = "NotNullAttribute")]
11    pub struct NotNullAttribute {}
12}
13
14#[cfg(feature = "unity_engine-bindings-notnullattribute-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-bindings-notnullattribute")]
18pub trait INotNullAttributeMethods: INotNullAttribute {
19    #[doc = "`set_Exception(::unity::Il2CppString)` overload"]
20    fn set_exception(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
21        unsafe {
22            let __receiver = <NotNullAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
23            ::unity::il2cpp_call!((::unity::module_base()+0x3f384b0usize)as*mut u8,();
24(NotNullAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
25        }
26    }
27    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
28    fn ctor(self, exception: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
29        unsafe {
30            let __receiver = <NotNullAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
31            ::unity::il2cpp_call!((::unity::module_base()+0x3f384c0usize)as*mut u8,();
32(NotNullAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(exception))
33        }
34    }
35}
36
37#[cfg(feature = "unity_engine-bindings-notnullattribute")]
38impl<__T: INotNullAttribute> INotNullAttributeMethods for __T {}
39
40#[cfg(feature = "unity_engine-bindings-notnullattribute")]
41impl NotNullAttribute {
42    pub fn set_exception_method_info() -> &'static ::unity::il2cpp::MethodInfo {
43        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
44    }
45
46    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
47        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
48    }
49}
50
51#[cfg(feature = "unity_engine-bindings-notnullattribute")]
52impl NotNullAttribute {
53    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
54    pub fn new(exception: ::unity::Il2CppString) -> Self {
55        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
56            panic!(
57                "{}
58::{}
59 failed to instantiate",
60                ::core::stringify!(NotNullAttribute),
61                ::core::stringify!(new),
62            )
63        });
64        <Self as INotNullAttributeMethods>::ctor(this, exception);
65        this
66    }
67}
68
69#[cfg(feature = "unity_engine-bindings-notnullattribute")]
70#[doc(hidden)]
71pub mod prelude {
72    pub use super::{INotNullAttribute, INotNullAttributeMethods, NotNullAttribute};
73}