Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-collections-generic-arraybuilder_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/system/collections/generic/arraybuilder_1/ArrayBuilder_1.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct ArrayBuilder_1<T0> {
17        pub _phantom: ::core::marker::PhantomData<(T0,)>,
18    }
19    impl<T0: ::unity::ClassIdentity> ::unity::ClassIdentity for ArrayBuilder_1<T0> {
20        const NAME: &'static str = "ArrayBuilder`1";
21        const NAMESPACE: &'static str = "System.Collections.Generic";
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 ArrayBuilder_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 = "system-collections-generic-arraybuilder_1-types")]
40pub use __types::*;
41
42#[cfg(feature = "system-collections-generic-arraybuilder_1")]
43#[::unity::methods(value)]
44impl<T0: ::unity::ClassIdentity> ArrayBuilder_1<T0> {
45    #[doc = "`.ctor(i32)` overload"]
46    #[method(name = ".ctor", args = 1)]
47    pub fn ctor(self, capacity: 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_Count()` overload"]
54    #[method(name = "get_Count", args = 0)]
55    pub fn get_count(self) -> i32;
56
57    #[doc = "`get_Item(i32)` overload"]
58    #[method(name = "get_Item", args = 1)]
59    pub fn get_item(self, index: i32) -> T0;
60
61    #[doc = "`Add(T0)` overload"]
62    #[method(name = "Add", args = 1)]
63    pub fn add(self, item: T0) -> ();
64
65    #[doc = "`ToArray()` overload"]
66    #[method(name = "ToArray", args = 0)]
67    pub fn to_array(self) -> ::unity::Array<T0>;
68
69    #[doc = "`UncheckedAdd(T0)` overload"]
70    #[method(name = "UncheckedAdd", args = 1)]
71    pub fn unchecked_add(self, item: T0) -> ();
72
73    #[doc = "`EnsureCapacity(i32)` overload"]
74    #[method(name = "EnsureCapacity", args = 1)]
75    pub fn ensure_capacity(self, minimum: i32) -> ();
76}
77
78#[cfg(feature = "system-collections-generic-arraybuilder_1")]
79#[doc(hidden)]
80pub mod prelude {
81    pub use super::ArrayBuilder_1;
82    #[cfg(feature = "system-object")]
83    pub use crate::system::object::IObjectMethods;
84    #[cfg(feature = "system-valuetype")]
85    pub use crate::system::valuetype::IValueTypeMethods;
86    pub use crate::system::{object::IObject, valuetype::IValueType};
87}