engage/generated/unity_engine/rendering/
listbuffer_1.rs1#[cfg(feature = "unity_engine-rendering-listbuffer_1-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 valuetype::{IValueType, ValueType},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/listbuffer_1/ListBuffer_1.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct ListBuffer_1<T0> {
17 pub _phantom: ::core::marker::PhantomData<(T0,)>,
18 }
19 impl<T0: ::unity::ClassIdentity> ::unity::ClassIdentity for ListBuffer_1<T0> {
20 const NAME: &'static str = "ListBuffer`1";
21 const NAMESPACE: &'static str = "UnityEngine.Rendering";
22
23 fn class() -> ::unity::Class {
24 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
25 *CACHE.get_or_init(|| {
26 ::unity::Class::lookup(Self::NAMESPACE, Self::NAME)
27 .make_generic(&[<T0 as ::unity::ClassIdentity>::class()])
28 .expect("generic instantiation")
29 })
30 }
31 }
32 impl<T0: ::unity::ClassIdentity> ::unity::IlType for ListBuffer_1<T0> {
33 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35 }
36 }
37}
38
39#[cfg(feature = "unity_engine-rendering-listbuffer_1-types")]
40pub use __types::*;
41
42#[cfg(feature = "unity_engine-rendering-listbuffer_1")]
43#[::unity::methods(value)]
44impl<T0: ::unity::ClassIdentity> ListBuffer_1<T0> {
45 #[doc = "`get_Count()` overload"]
46 #[method(name = "get_Count", args = 0)]
47 pub fn get_count(self) -> i32;
48
49 #[doc = "`get_Capacity()` overload"]
50 #[method(name = "get_Capacity", args = 0)]
51 pub fn get_capacity(self) -> i32;
52
53 #[doc = "`get_Item(*muti32)` overload"]
54 #[method(name = "get_Item", args = 1)]
55 pub fn get_item(self, index: *mut i32) -> *mut T0;
56
57 #[doc = "`GetUnchecked(*muti32)` overload"]
58 #[method(name = "GetUnchecked", args = 1)]
59 pub fn get_unchecked(self, index: *mut i32) -> *mut T0;
60
61 #[doc = "`TryAdd(*mutT0)` overload"]
62 #[method(name = "TryAdd", args = 1)]
63 pub fn try_add(self, value: *mut T0) -> bool;
64
65 #[doc = "`TryCopyTo(crate::unity_engine::rendering::listbuffer_1::ListBuffer_1<T0>)` overload"]
66 #[method(name = "TryCopyTo", args = 1)]
67 pub fn try_copy_to(self, other: crate::unity_engine::rendering::listbuffer_1::ListBuffer_1<T0>) -> bool;
68}
69
70#[cfg(feature = "unity_engine-rendering-listbuffer_1")]
71#[doc(hidden)]
72pub mod prelude {
73 pub use super::ListBuffer_1;
74 #[cfg(feature = "system-object")]
75 pub use crate::system::object::IObjectMethods;
76 #[cfg(feature = "system-valuetype")]
77 pub use crate::system::valuetype::IValueTypeMethods;
78 pub use crate::system::{object::IObject, valuetype::IValueType};
79}