engage/generated/system/reflection/
customattributetypedargument.rs1#[cfg(feature = "system-reflection-customattributetypedargument-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/system/reflection/customattributetypedargument/CustomAttributeTypedArgument.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct CustomAttributeTypedArgument {
17 pub argument_type: ::unity::SystemType,
18 pub value: ::unity::IlInstance,
19 }
20 impl ::unity::ClassIdentity for CustomAttributeTypedArgument {
21 const NAME: &'static str = "CustomAttributeTypedArgument";
22 const NAMESPACE: &'static str = "System.Reflection";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27 }
28 }
29 impl ::unity::IlType for CustomAttributeTypedArgument {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34}
35
36#[cfg(feature = "system-reflection-customattributetypedargument-types")]
37pub use __types::*;
38
39#[cfg(feature = "system-reflection-customattributetypedargument")]
40impl CustomAttributeTypedArgument {
41 #[doc = "`.ctor(::unity::SystemType, crate::system::object::Object)` overload"]
42 pub fn ctor(
43 &mut self,
44 argument_type: impl ::core::convert::Into<::unity::SystemType>,
45 value: impl ::core::convert::Into<crate::system::object::Object>,
46 ) -> () {
47 unsafe {
48 ::unity::il2cpp_call!((::unity::module_base()+0x37165a0usize)as*mut u8,();
49(*mut CustomAttributeTypedArgument)self as*mut CustomAttributeTypedArgument,(::unity::SystemType)::core::convert::Into::into(argument_type),(crate::system::object::Object)::core::convert::Into::into(value))
50 }
51 }
52
53 #[doc = "`ToString()` overload"]
54 pub fn to_string(&mut self) -> ::unity::Il2CppString {
55 unsafe {
56 ::unity::il2cpp_call!((::unity::module_base()+0x3715560usize)as*mut u8, ::unity::Il2CppString;
57(*mut CustomAttributeTypedArgument)self as*mut CustomAttributeTypedArgument)
58 }
59 }
60
61 #[doc = "`Equals(crate::system::object::Object)` overload"]
62 pub fn equals(&mut self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
63 unsafe {
64 ::unity::il2cpp_call!((::unity::module_base()+0x3715e50usize)as*mut u8,bool;
65(*mut CustomAttributeTypedArgument)self as*mut CustomAttributeTypedArgument,(crate::system::object::Object)::core::convert::Into::into(obj))
66 }
67 }
68
69 #[doc = "`GetHashCode()` overload"]
70 pub fn get_hash_code(&mut self) -> i32 {
71 unsafe {
72 ::unity::il2cpp_call!((::unity::module_base()+0x3716380usize)as*mut u8,i32;
73(*mut CustomAttributeTypedArgument)self as*mut CustomAttributeTypedArgument)
74 }
75 }
76}
77
78#[cfg(feature = "system-reflection-customattributetypedargument")]
79impl CustomAttributeTypedArgument {
80 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
81 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
82 }
83
84 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
86 }
87
88 pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
89 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
90 }
91
92 pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
94 }
95}
96
97#[cfg(feature = "system-reflection-customattributetypedargument")]
98#[doc(hidden)]
99pub mod prelude {
100 pub use super::CustomAttributeTypedArgument;
101 #[cfg(feature = "system-object")]
102 pub use crate::system::object::IObjectMethods;
103 #[cfg(feature = "system-valuetype")]
104 pub use crate::system::valuetype::IValueTypeMethods;
105 pub use crate::system::{object::IObject, valuetype::IValueType};
106}