Skip to main content

engage/generated/system/collections/generic/
nonrandomizedstringequalitycomparer.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-collections-generic-nonrandomizedstringequalitycomparer-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        collections::generic::equalitycomparer_1::{EqualityComparer_1, IEqualityComparer_1},
10        object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/nonrandomizedstringequalitycomparer/NonRandomizedStringEqualityComparer.md"))]
14    #[::unity::class(namespace = "System.Collections.Generic", name = "NonRandomizedStringEqualityComparer")]
15    #[parent(crate::system::collections::generic::equalitycomparer_1::EqualityComparer_1< ::unity::Il2CppString>)]
16    pub struct NonRandomizedStringEqualityComparer {}
17}
18
19#[cfg(feature = "system-collections-generic-nonrandomizedstringequalitycomparer-types")]
20pub use __types::*;
21
22#[cfg(feature = "system-collections-generic-nonrandomizedstringequalitycomparer")]
23pub trait INonRandomizedStringEqualityComparerMethods: INonRandomizedStringEqualityComparer {
24    #[doc = "`Equals(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
25    fn equals(self, x: impl ::core::convert::Into<::unity::Il2CppString>, y: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
26        unsafe {
27            let __receiver = <NonRandomizedStringEqualityComparer as ::unity::FromIlInstance>::from_il_instance(
28                <Self as ::unity::SystemObject>::as_instance(self),
29            );
30            {
31                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
32                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
33                    panic!(
34                        "unity: virtual slot {}
35 out of range (vtable len {}
36) on the runtime class behind {}
37 (method `{}
38`)",
39                        8usize,
40                        __vt.len(),
41                        <NonRandomizedStringEqualityComparer as ::unity::ClassIdentity>::NAME,
42                        "Equals",
43                    )
44                });
45                let __inner: extern "C" fn(
46                    NonRandomizedStringEqualityComparer,
47                    ::unity::Il2CppString,
48                    ::unity::Il2CppString,
49                    ::unity::OptionalMethod,
50                ) -> bool = ::core::mem::transmute(__vi.method_ptr);
51                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
52                __inner(__receiver, ::core::convert::Into::into(x), ::core::convert::Into::into(y), __mi)
53            }
54        }
55    }
56    #[doc = "`GetHashCode(::unity::Il2CppString)` overload"]
57    fn get_hash_code(self, obj: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
58        unsafe {
59            let __receiver = <NonRandomizedStringEqualityComparer as ::unity::FromIlInstance>::from_il_instance(
60                <Self as ::unity::SystemObject>::as_instance(self),
61            );
62            {
63                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
64                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
65                    panic!(
66                        "unity: virtual slot {}
67 out of range (vtable len {}
68) on the runtime class behind {}
69 (method `{}
70`)",
71                        9usize,
72                        __vt.len(),
73                        <NonRandomizedStringEqualityComparer as ::unity::ClassIdentity>::NAME,
74                        "GetHashCode",
75                    )
76                });
77                let __inner: extern "C" fn(NonRandomizedStringEqualityComparer, ::unity::Il2CppString, ::unity::OptionalMethod) -> i32 =
78                    ::core::mem::transmute(__vi.method_ptr);
79                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
80                __inner(__receiver, ::core::convert::Into::into(obj), __mi)
81            }
82        }
83    }
84    #[doc = "`.ctor()` overload"]
85    fn ctor(self) -> () {
86        unsafe {
87            let __receiver = <NonRandomizedStringEqualityComparer as ::unity::FromIlInstance>::from_il_instance(
88                <Self as ::unity::SystemObject>::as_instance(self),
89            );
90            ::unity::il2cpp_call!((::unity::module_base()+0x3385d20usize)as*mut u8,();
91(NonRandomizedStringEqualityComparer)__receiver)
92        }
93    }
94}
95
96#[cfg(feature = "system-collections-generic-nonrandomizedstringequalitycomparer")]
97impl<__T: INonRandomizedStringEqualityComparer> INonRandomizedStringEqualityComparerMethods for __T {}
98
99#[cfg(feature = "system-collections-generic-nonrandomizedstringequalitycomparer")]
100impl NonRandomizedStringEqualityComparer {
101    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
103    }
104
105    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
107    }
108
109    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
111    }
112}
113
114#[cfg(feature = "system-collections-generic-nonrandomizedstringequalitycomparer")]
115impl NonRandomizedStringEqualityComparer {
116    #[doc = "Direct (non-virtual) call to `NonRandomizedStringEqualityComparer`'s own `Equals`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
117    pub unsafe fn equals(this: impl ::core::convert::Into<::unity::IlInstance>, x: ::unity::Il2CppString, y: ::unity::Il2CppString) -> bool {
118        let __mi = Self::equals_method_info();
119        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
120            ::core::mem::transmute(__mi.method_ptr);
121        __inner(this.into(), x, y, ::core::option::Option::None)
122    }
123
124    #[doc = "Direct (non-virtual) call to `NonRandomizedStringEqualityComparer`'s own `GetHashCode`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
125    pub unsafe fn get_hash_code(this: impl ::core::convert::Into<::unity::IlInstance>, obj: ::unity::Il2CppString) -> i32 {
126        let __mi = Self::get_hash_code_method_info();
127        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> i32 =
128            ::core::mem::transmute(__mi.method_ptr);
129        __inner(this.into(), obj, ::core::option::Option::None)
130    }
131}
132
133#[cfg(feature = "system-collections-generic-nonrandomizedstringequalitycomparer")]
134impl NonRandomizedStringEqualityComparer {
135    #[doc = "`.ctor()` — no args"]
136    pub fn new() -> Self {
137        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
138            panic!(
139                "{}
140::{}
141 failed to instantiate",
142                ::core::stringify!(NonRandomizedStringEqualityComparer),
143                ::core::stringify!(new),
144            )
145        });
146        <Self as INonRandomizedStringEqualityComparerMethods>::ctor(this);
147        this
148    }
149}
150
151#[cfg(feature = "system-collections-generic-nonrandomizedstringequalitycomparer")]
152#[doc(hidden)]
153pub mod prelude {
154    pub use super::{INonRandomizedStringEqualityComparer, INonRandomizedStringEqualityComparerMethods, NonRandomizedStringEqualityComparer};
155    #[cfg(feature = "system-collections-generic-equalitycomparer_1")]
156    pub use crate::system::collections::generic::equalitycomparer_1::IEqualityComparer_1Methods;
157    #[cfg(feature = "system-object")]
158    pub use crate::system::object::IObjectMethods;
159    pub use crate::system::{collections::generic::equalitycomparer_1::IEqualityComparer_1, object::IObject};
160}