engage/generated/system/collections/generic/
objectequalitycomparer_1.rs1#[cfg(feature = "system-collections-generic-objectequalitycomparer_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/objectequalitycomparer_1/ObjectEqualityComparer_1.md"))]
14 #[::unity::class(namespace = "System.Collections.Generic", name = "ObjectEqualityComparer`1")]
15 #[parent(crate::system::collections::generic::equalitycomparer_1::EqualityComparer_1<T0>)]
16 #[parent(crate::system::object::Object)]
17 pub struct ObjectEqualityComparer_1<T0: ::unity::ClassIdentity> {}
18}
19
20#[cfg(feature = "system-collections-generic-objectequalitycomparer_1-types")]
21pub use __types::*;
22
23#[cfg(feature = "system-collections-generic-objectequalitycomparer_1")]
24#[::unity::methods]
25impl<T0: ::unity::ClassIdentity> ObjectEqualityComparer_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-objectequalitycomparer_1")]
56impl<T0: ::unity::ClassIdentity> ObjectEqualityComparer_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!(ObjectEqualityComparer_1),
65 ::core::stringify!(new),
66 )
67 });
68 <Self as IObjectEqualityComparer_1Methods<T0>>::ctor(this);
69 this
70 }
71}
72
73#[cfg(feature = "system-collections-generic-objectequalitycomparer_1")]
74#[doc(hidden)]
75pub mod prelude {
76 pub use super::{IObjectEqualityComparer_1, IObjectEqualityComparer_1Methods, ObjectEqualityComparer_1};
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}