Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-collections-generic-genericequalitycomparer_1-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/genericequalitycomparer_1/GenericEqualityComparer_1.md"))]
14    #[::unity::class(namespace = "System.Collections.Generic", name = "GenericEqualityComparer`1")]
15    #[parent(crate::system::collections::generic::equalitycomparer_1::EqualityComparer_1<T0>)]
16    #[parent(crate::system::object::Object)]
17    pub struct GenericEqualityComparer_1<T0: ::unity::ClassIdentity> {}
18}
19
20#[cfg(feature = "system-collections-generic-genericequalitycomparer_1-types")]
21pub use __types::*;
22
23#[cfg(feature = "system-collections-generic-genericequalitycomparer_1")]
24#[::unity::methods]
25impl<T0: ::unity::ClassIdentity> GenericEqualityComparer_1<T0> {
26    #[doc = "`Equals(T0, T0)` overload"]
27    #[method(name = "Equals", args = 2)]
28    pub fn equals(self, x: T0, y: T0) -> bool;
29
30    #[doc = "`GetHashCode(T0)` overload"]
31    #[method(name = "GetHashCode", args = 1)]
32    pub fn get_hash_code(self, obj: T0) -> i32;
33
34    #[doc = "`IndexOf(::unity::Array<T0>, T0, i32, i32)` overload"]
35    #[method(name = "IndexOf", args = 4)]
36    pub fn index_of(self, array: ::unity::Array<T0>, value: T0, start_index: i32, count: i32) -> i32;
37
38    #[doc = "`LastIndexOf(::unity::Array<T0>, T0, i32, i32)` overload"]
39    #[method(name = "LastIndexOf", args = 4)]
40    pub fn last_index_of(self, array: ::unity::Array<T0>, value: T0, start_index: i32, count: i32) -> i32;
41
42    #[doc = "`Equals(crate::system::object::Object)` overload"]
43    #[method(name = "Equals", args = 1)]
44    pub fn equals_2(self, obj: crate::system::object::Object) -> bool;
45
46    #[doc = "`GetHashCode()` overload"]
47    #[method(name = "GetHashCode", args = 0)]
48    pub fn get_hash_code_2(self) -> i32;
49
50    #[doc = "`.ctor()` overload"]
51    #[method(name = ".ctor", args = 0)]
52    pub fn ctor(self) -> ();
53}
54
55#[cfg(feature = "system-collections-generic-genericequalitycomparer_1")]
56impl<T0: ::unity::ClassIdentity> GenericEqualityComparer_1<T0> {
57    #[doc = "`.ctor()` — no args"]
58    pub fn new() -> Self {
59        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
60            panic!(
61                "{}
62::{}
63 failed to instantiate",
64                ::core::stringify!(GenericEqualityComparer_1),
65                ::core::stringify!(new),
66            )
67        });
68        <Self as IGenericEqualityComparer_1Methods<T0>>::ctor(this);
69        this
70    }
71}
72
73#[cfg(feature = "system-collections-generic-genericequalitycomparer_1")]
74#[doc(hidden)]
75pub mod prelude {
76    pub use super::{GenericEqualityComparer_1, IGenericEqualityComparer_1, IGenericEqualityComparer_1Methods};
77    #[cfg(feature = "system-collections-generic-equalitycomparer_1")]
78    pub use crate::system::collections::generic::equalitycomparer_1::IEqualityComparer_1Methods;
79    #[cfg(feature = "system-object")]
80    pub use crate::system::object::IObjectMethods;
81    pub use crate::system::{collections::generic::equalitycomparer_1::IEqualityComparer_1, object::IObject};
82}