Skip to main content

engage/generated/unity_engine/
exposedreference_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-exposedreference_1-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/exposedreference_1/ExposedReference_1.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct ExposedReference_1<T0> {
17        pub _phantom: ::core::marker::PhantomData<(T0,)>,
18    }
19    impl<T0: ::unity::ClassIdentity> ::unity::ClassIdentity for ExposedReference_1<T0> {
20        const NAME: &'static str = "ExposedReference`1";
21        const NAMESPACE: &'static str = "UnityEngine";
22
23        fn class() -> ::unity::Class {
24            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
25            *CACHE.get_or_init(|| {
26                ::unity::Class::lookup(Self::NAMESPACE, Self::NAME)
27                    .make_generic(&[<T0 as ::unity::ClassIdentity>::class()])
28                    .expect("generic instantiation")
29            })
30        }
31    }
32    impl<T0: ::unity::ClassIdentity> ::unity::IlType for ExposedReference_1<T0> {
33        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35        }
36    }
37}
38
39#[cfg(feature = "unity_engine-exposedreference_1-types")]
40pub use __types::*;
41
42#[cfg(feature = "unity_engine-exposedreference_1")]
43#[::unity::methods(value)]
44impl<T0: ::unity::ClassIdentity> ExposedReference_1<T0> {
45    #[doc = "`Resolve(crate::unity_engine::iexposedpropertytable::IExposedPropertyTable)` overload"]
46    #[method(name = "Resolve", args = 1)]
47    pub fn resolve(self, resolver: crate::unity_engine::iexposedpropertytable::IExposedPropertyTable) -> T0;
48}
49
50#[cfg(feature = "unity_engine-exposedreference_1")]
51#[doc(hidden)]
52pub mod prelude {
53    pub use super::ExposedReference_1;
54    #[cfg(feature = "system-object")]
55    pub use crate::system::object::IObjectMethods;
56    #[cfg(feature = "system-valuetype")]
57    pub use crate::system::valuetype::IValueTypeMethods;
58    pub use crate::system::{object::IObject, valuetype::IValueType};
59}