engage/generated/system/collections/generic/
introspectivesortutilities.rs1#[cfg(feature = "system-collections-generic-introspectivesortutilities-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/introspectivesortutilities/IntrospectiveSortUtilities.md"))]
11 #[::unity::class(namespace = "System.Collections.Generic", name = "IntrospectiveSortUtilities")]
12 #[parent(crate::system::object::Object)]
13 pub struct IntrospectiveSortUtilities {}
14}
15
16#[cfg(feature = "system-collections-generic-introspectivesortutilities-types")]
17pub use __types::*;
18
19#[cfg(feature = "system-collections-generic-introspectivesortutilities")]
20impl IntrospectiveSortUtilities {
21 #[doc = "`FloorLog2(i32)` overload"]
22 pub fn floor_log2(n: impl ::core::convert::Into<i32>) -> i32 {
23 unsafe {
24 ::unity::il2cpp_call!((::unity::module_base()+0x32639d0usize)as*mut u8,i32;
25(i32)::core::convert::Into::into(n))
26 }
27 }
28
29 #[doc = "`ThrowOrIgnoreBadComparer(crate::system::object::Object)` overload"]
30 pub fn throw_or_ignore_bad_comparer(comparer: impl ::core::convert::Into<crate::system::object::Object>) -> () {
31 unsafe {
32 ::unity::il2cpp_call!((::unity::module_base()+0x3263a10usize)as*mut u8,();
33(crate::system::object::Object)::core::convert::Into::into(comparer))
34 }
35 }
36}
37
38#[cfg(feature = "system-collections-generic-introspectivesortutilities")]
39impl IntrospectiveSortUtilities {
40 pub fn floor_log2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
41 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
42 }
43
44 pub fn throw_or_ignore_bad_comparer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
45 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
46 }
47}
48
49#[cfg(feature = "system-collections-generic-introspectivesortutilities")]
50#[doc(hidden)]
51pub mod prelude {
52 pub use super::{IIntrospectiveSortUtilities, IntrospectiveSortUtilities};
53 pub use crate::system::object::IObject;
54 #[cfg(feature = "system-object")]
55 pub use crate::system::object::IObjectMethods;
56}