Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-collections-generic-objectcomparer_1-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        collections::generic::comparer_1::{Comparer_1, IComparer_1},
10        object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/objectcomparer_1/ObjectComparer_1.md"))]
14    #[::unity::class(namespace = "System.Collections.Generic", name = "ObjectComparer`1")]
15    #[parent(crate::system::collections::generic::comparer_1::Comparer_1<T0>)]
16    #[parent(crate::system::object::Object)]
17    pub struct ObjectComparer_1<T0: ::unity::ClassIdentity> {}
18}
19
20#[cfg(feature = "system-collections-generic-objectcomparer_1-types")]
21pub use __types::*;
22
23#[cfg(feature = "system-collections-generic-objectcomparer_1")]
24#[::unity::methods]
25impl<T0: ::unity::ClassIdentity> ObjectComparer_1<T0> {
26    #[doc = "`Compare(T0, T0)` overload"]
27    #[method(name = "Compare", args = 2)]
28    pub fn compare(self, x: T0, y: T0) -> i32;
29
30    #[doc = "`Equals(crate::system::object::Object)` overload"]
31    #[method(name = "Equals", args = 1)]
32    pub fn equals(self, obj: crate::system::object::Object) -> bool;
33
34    #[doc = "`GetHashCode()` overload"]
35    #[method(name = "GetHashCode", args = 0)]
36    pub fn get_hash_code(self) -> i32;
37
38    #[doc = "`.ctor()` overload"]
39    #[method(name = ".ctor", args = 0)]
40    pub fn ctor(self) -> ();
41}
42
43#[cfg(feature = "system-collections-generic-objectcomparer_1")]
44impl<T0: ::unity::ClassIdentity> ObjectComparer_1<T0> {
45    #[doc = "`.ctor()` — no args"]
46    pub fn new() -> Self {
47        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
48            panic!(
49                "{}
50::{}
51 failed to instantiate",
52                ::core::stringify!(ObjectComparer_1),
53                ::core::stringify!(new),
54            )
55        });
56        <Self as IObjectComparer_1Methods<T0>>::ctor(this);
57        this
58    }
59}
60
61#[cfg(feature = "system-collections-generic-objectcomparer_1")]
62#[doc(hidden)]
63pub mod prelude {
64    pub use super::{IObjectComparer_1, IObjectComparer_1Methods, ObjectComparer_1};
65    #[cfg(feature = "system-collections-generic-comparer_1")]
66    pub use crate::system::collections::generic::comparer_1::IComparer_1Methods;
67    #[cfg(feature = "system-object")]
68    pub use crate::system::object::IObjectMethods;
69    pub use crate::system::{collections::generic::comparer_1::IComparer_1, object::IObject};
70}