engage/generated/unity_engine/rendering/
ibitarray.rs1#[cfg(feature = "unity_engine-rendering-ibitarray-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8
9 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/ibitarray/IBitArray.md"))]
10 #[::unity::class(namespace = "UnityEngine.Rendering", name = "IBitArray")]
11 pub struct IBitArray {}
12}
13
14#[cfg(feature = "unity_engine-rendering-ibitarray-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-rendering-ibitarray")]
18pub trait IIBitArrayMethods: IIBitArray {
19 #[doc = "`get_capacity()` overload"]
20 fn get_capacity(self) -> u32 {
21 unsafe {
22 let __receiver = <IBitArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
23 {
24 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
25 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
26 panic!(
27 "unity: virtual slot {}
28 out of range (vtable len {}
29) on the runtime class behind {}
30 (method `{}
31`)",
32 0usize,
33 __vt.len(),
34 <IBitArray as ::unity::ClassIdentity>::NAME,
35 "get_capacity",
36 )
37 });
38 let __inner: extern "C" fn(IBitArray, ::unity::OptionalMethod) -> u32 = ::core::mem::transmute(__vi.method_ptr);
39 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
40 __inner(__receiver, __mi)
41 }
42 }
43 }
44 #[doc = "`get_allFalse()` overload"]
45 fn get_all_false(self) -> bool {
46 unsafe {
47 let __receiver = <IBitArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 {
49 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
50 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
51 panic!(
52 "unity: virtual slot {}
53 out of range (vtable len {}
54) on the runtime class behind {}
55 (method `{}
56`)",
57 1usize,
58 __vt.len(),
59 <IBitArray as ::unity::ClassIdentity>::NAME,
60 "get_allFalse",
61 )
62 });
63 let __inner: extern "C" fn(IBitArray, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
64 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
65 __inner(__receiver, __mi)
66 }
67 }
68 }
69 #[doc = "`get_allTrue()` overload"]
70 fn get_all_true(self) -> bool {
71 unsafe {
72 let __receiver = <IBitArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73 {
74 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
75 let __vi = *__vt.get(2usize).unwrap_or_else(|| {
76 panic!(
77 "unity: virtual slot {}
78 out of range (vtable len {}
79) on the runtime class behind {}
80 (method `{}
81`)",
82 2usize,
83 __vt.len(),
84 <IBitArray as ::unity::ClassIdentity>::NAME,
85 "get_allTrue",
86 )
87 });
88 let __inner: extern "C" fn(IBitArray, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
89 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
90 __inner(__receiver, __mi)
91 }
92 }
93 }
94 #[doc = "`get_Item(u32)` overload"]
95 fn get_item(self, index: impl ::core::convert::Into<u32>) -> bool {
96 unsafe {
97 let __receiver = <IBitArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 {
99 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
100 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
101 panic!(
102 "unity: virtual slot {}
103 out of range (vtable len {}
104) on the runtime class behind {}
105 (method `{}
106`)",
107 3usize,
108 __vt.len(),
109 <IBitArray as ::unity::ClassIdentity>::NAME,
110 "get_Item",
111 )
112 });
113 let __inner: extern "C" fn(IBitArray, u32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
114 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
115 __inner(__receiver, ::core::convert::Into::into(index), __mi)
116 }
117 }
118 }
119 #[doc = "`set_Item(u32, bool)` overload"]
120 fn set_item(self, index: impl ::core::convert::Into<u32>, value: impl ::core::convert::Into<bool>) -> () {
121 unsafe {
122 let __receiver = <IBitArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123 {
124 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
125 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
126 panic!(
127 "unity: virtual slot {}
128 out of range (vtable len {}
129) on the runtime class behind {}
130 (method `{}
131`)",
132 4usize,
133 __vt.len(),
134 <IBitArray as ::unity::ClassIdentity>::NAME,
135 "set_Item",
136 )
137 });
138 let __inner: extern "C" fn(IBitArray, u32, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
139 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
140 __inner(__receiver, ::core::convert::Into::into(index), ::core::convert::Into::into(value), __mi)
141 }
142 }
143 }
144 #[doc = "`get_humanizedData()` overload"]
145 fn get_humanized_data(self) -> ::unity::Il2CppString {
146 unsafe {
147 let __receiver = <IBitArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 {
149 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
150 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
151 panic!(
152 "unity: virtual slot {}
153 out of range (vtable len {}
154) on the runtime class behind {}
155 (method `{}
156`)",
157 5usize,
158 __vt.len(),
159 <IBitArray as ::unity::ClassIdentity>::NAME,
160 "get_humanizedData",
161 )
162 });
163 let __inner: extern "C" fn(IBitArray, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
164 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
165 __inner(__receiver, __mi)
166 }
167 }
168 }
169 #[doc = "`BitAnd(crate::unity_engine::rendering::ibitarray::IBitArray)` overload"]
170 fn bit_and(
171 self,
172 other: impl ::core::convert::Into<crate::unity_engine::rendering::ibitarray::IBitArray>,
173 ) -> crate::unity_engine::rendering::ibitarray::IBitArray {
174 unsafe {
175 let __receiver = <IBitArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176 {
177 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
178 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
179 panic!(
180 "unity: virtual slot {}
181 out of range (vtable len {}
182) on the runtime class behind {}
183 (method `{}
184`)",
185 6usize,
186 __vt.len(),
187 <IBitArray as ::unity::ClassIdentity>::NAME,
188 "BitAnd",
189 )
190 });
191 let __inner: extern "C" fn(
192 IBitArray,
193 crate::unity_engine::rendering::ibitarray::IBitArray,
194 ::unity::OptionalMethod,
195 ) -> crate::unity_engine::rendering::ibitarray::IBitArray = ::core::mem::transmute(__vi.method_ptr);
196 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
197 __inner(__receiver, ::core::convert::Into::into(other), __mi)
198 }
199 }
200 }
201 #[doc = "`BitOr(crate::unity_engine::rendering::ibitarray::IBitArray)` overload"]
202 fn bit_or(
203 self,
204 other: impl ::core::convert::Into<crate::unity_engine::rendering::ibitarray::IBitArray>,
205 ) -> crate::unity_engine::rendering::ibitarray::IBitArray {
206 unsafe {
207 let __receiver = <IBitArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208 {
209 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
210 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
211 panic!(
212 "unity: virtual slot {}
213 out of range (vtable len {}
214) on the runtime class behind {}
215 (method `{}
216`)",
217 7usize,
218 __vt.len(),
219 <IBitArray as ::unity::ClassIdentity>::NAME,
220 "BitOr",
221 )
222 });
223 let __inner: extern "C" fn(
224 IBitArray,
225 crate::unity_engine::rendering::ibitarray::IBitArray,
226 ::unity::OptionalMethod,
227 ) -> crate::unity_engine::rendering::ibitarray::IBitArray = ::core::mem::transmute(__vi.method_ptr);
228 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
229 __inner(__receiver, ::core::convert::Into::into(other), __mi)
230 }
231 }
232 }
233 #[doc = "`BitNot()` overload"]
234 fn bit_not(self) -> crate::unity_engine::rendering::ibitarray::IBitArray {
235 unsafe {
236 let __receiver = <IBitArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237 {
238 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
239 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
240 panic!(
241 "unity: virtual slot {}
242 out of range (vtable len {}
243) on the runtime class behind {}
244 (method `{}
245`)",
246 8usize,
247 __vt.len(),
248 <IBitArray as ::unity::ClassIdentity>::NAME,
249 "BitNot",
250 )
251 });
252 let __inner: extern "C" fn(IBitArray, ::unity::OptionalMethod) -> crate::unity_engine::rendering::ibitarray::IBitArray =
253 ::core::mem::transmute(__vi.method_ptr);
254 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
255 __inner(__receiver, __mi)
256 }
257 }
258 }
259}
260
261#[cfg(feature = "unity_engine-rendering-ibitarray")]
262impl<__T: IIBitArray> IIBitArrayMethods for __T {}
263
264#[cfg(feature = "unity_engine-rendering-ibitarray")]
265impl IBitArray {
266 pub fn get_capacity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
268 }
269
270 pub fn get_all_false_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
272 }
273
274 pub fn get_all_true_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
276 }
277
278 pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
280 }
281
282 pub fn set_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
284 }
285
286 pub fn get_humanized_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
288 }
289
290 pub fn bit_and_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
292 }
293
294 pub fn bit_or_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
296 }
297
298 pub fn bit_not_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
300 }
301}
302
303#[cfg(feature = "unity_engine-rendering-ibitarray")]
304impl IBitArray {
305 #[doc = "Direct (non-virtual) call to `IBitArray`'s own `get_capacity`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
306 pub unsafe fn get_capacity(this: impl ::core::convert::Into<::unity::IlInstance>) -> u32 {
307 let __mi = Self::get_capacity_method_info();
308 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> u32 = ::core::mem::transmute(__mi.method_ptr);
309 __inner(this.into(), ::core::option::Option::None)
310 }
311
312 #[doc = "Direct (non-virtual) call to `IBitArray`'s own `get_allFalse`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
313 pub unsafe fn get_all_false(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
314 let __mi = Self::get_all_false_method_info();
315 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
316 __inner(this.into(), ::core::option::Option::None)
317 }
318
319 #[doc = "Direct (non-virtual) call to `IBitArray`'s own `get_allTrue`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
320 pub unsafe fn get_all_true(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
321 let __mi = Self::get_all_true_method_info();
322 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
323 __inner(this.into(), ::core::option::Option::None)
324 }
325
326 #[doc = "Direct (non-virtual) call to `IBitArray`'s own `get_Item`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
327 pub unsafe fn get_item(this: impl ::core::convert::Into<::unity::IlInstance>, index: u32) -> bool {
328 let __mi = Self::get_item_method_info();
329 let __inner: extern "C" fn(::unity::IlInstance, u32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
330 __inner(this.into(), index, ::core::option::Option::None)
331 }
332
333 #[doc = "Direct (non-virtual) call to `IBitArray`'s own `set_Item`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
334 pub unsafe fn set_item(this: impl ::core::convert::Into<::unity::IlInstance>, index: u32, value: bool) -> () {
335 let __mi = Self::set_item_method_info();
336 let __inner: extern "C" fn(::unity::IlInstance, u32, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
337 __inner(this.into(), index, value, ::core::option::Option::None)
338 }
339
340 #[doc = "Direct (non-virtual) call to `IBitArray`'s own `get_humanizedData`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
341 pub unsafe fn get_humanized_data(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
342 let __mi = Self::get_humanized_data_method_info();
343 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
344 __inner(this.into(), ::core::option::Option::None)
345 }
346
347 #[doc = "Direct (non-virtual) call to `IBitArray`'s own `BitAnd`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
348 pub unsafe fn bit_and(
349 this: impl ::core::convert::Into<::unity::IlInstance>,
350 other: crate::unity_engine::rendering::ibitarray::IBitArray,
351 ) -> crate::unity_engine::rendering::ibitarray::IBitArray {
352 let __mi = Self::bit_and_method_info();
353 let __inner: extern "C" fn(
354 ::unity::IlInstance,
355 crate::unity_engine::rendering::ibitarray::IBitArray,
356 ::unity::OptionalMethod,
357 ) -> crate::unity_engine::rendering::ibitarray::IBitArray = ::core::mem::transmute(__mi.method_ptr);
358 __inner(this.into(), other, ::core::option::Option::None)
359 }
360
361 #[doc = "Direct (non-virtual) call to `IBitArray`'s own `BitOr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
362 pub unsafe fn bit_or(
363 this: impl ::core::convert::Into<::unity::IlInstance>,
364 other: crate::unity_engine::rendering::ibitarray::IBitArray,
365 ) -> crate::unity_engine::rendering::ibitarray::IBitArray {
366 let __mi = Self::bit_or_method_info();
367 let __inner: extern "C" fn(
368 ::unity::IlInstance,
369 crate::unity_engine::rendering::ibitarray::IBitArray,
370 ::unity::OptionalMethod,
371 ) -> crate::unity_engine::rendering::ibitarray::IBitArray = ::core::mem::transmute(__mi.method_ptr);
372 __inner(this.into(), other, ::core::option::Option::None)
373 }
374
375 #[doc = "Direct (non-virtual) call to `IBitArray`'s own `BitNot`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
376 pub unsafe fn bit_not(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::rendering::ibitarray::IBitArray {
377 let __mi = Self::bit_not_method_info();
378 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::rendering::ibitarray::IBitArray =
379 ::core::mem::transmute(__mi.method_ptr);
380 __inner(this.into(), ::core::option::Option::None)
381 }
382}
383
384#[cfg(feature = "unity_engine-rendering-ibitarray")]
385#[doc(hidden)]
386pub mod prelude {
387 pub use super::{IBitArray, IIBitArray, IIBitArrayMethods};
388}