Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-collections-generic-queue_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/queue_1/Queue_1_Enumerator.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct Queue_1_Enumerator<T0> {
17        pub _phantom: ::core::marker::PhantomData<(T0,)>,
18    }
19    impl<T0: ::unity::ClassIdentity> ::unity::ClassIdentity for Queue_1_Enumerator<T0> {
20        const NAME: &'static str = "Queue`1.Enumerator";
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 Queue_1_Enumerator<T0> {
33        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35        }
36    }
37
38    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/queue_1/Queue_1.md"))]
39    #[::unity::class(namespace = "System.Collections.Generic", name = "Queue`1")]
40    #[parent(crate::system::object::Object)]
41    pub struct Queue_1<T0: ::unity::ClassIdentity> {
42        #[rename(name = "_array")]
43        pub array: ::unity::Array<T0>,
44        #[rename(name = "_head")]
45        pub head: i32,
46        #[rename(name = "_tail")]
47        pub tail: i32,
48        #[rename(name = "_size")]
49        pub size: i32,
50        #[rename(name = "_version")]
51        pub version: i32,
52        #[rename(name = "_syncRoot")]
53        pub sync_root: ::unity::IlInstance,
54        #[static_field]
55        #[rename(name = "MinimumGrow")]
56        pub minimum_grow: i32,
57        #[static_field]
58        #[rename(name = "GrowFactor")]
59        pub grow_factor: i32,
60    }
61}
62
63#[cfg(feature = "system-collections-generic-queue_1-types")]
64pub use __types::*;
65
66#[cfg(feature = "system-collections-generic-queue_1")]
67#[::unity::methods(value)]
68impl<T0: ::unity::ClassIdentity> Queue_1_Enumerator<T0> {
69    #[doc = "`.ctor(crate::system::collections::generic::queue_1::Queue_1<T0>)` overload"]
70    #[method(name = ".ctor", args = 1)]
71    pub fn ctor(self, q: crate::system::collections::generic::queue_1::Queue_1<T0>) -> ();
72
73    #[doc = "`Dispose()` overload"]
74    #[method(name = "Dispose", args = 0)]
75    pub fn dispose(self) -> ();
76
77    #[doc = "`MoveNext()` overload"]
78    #[method(name = "MoveNext", args = 0)]
79    pub fn move_next(self) -> bool;
80
81    #[doc = "`get_Current()` overload"]
82    #[method(name = "get_Current", args = 0)]
83    pub fn get_current(self) -> T0;
84
85    #[doc = "`ThrowEnumerationNotStartedOrEnded()` overload"]
86    #[method(name = "ThrowEnumerationNotStartedOrEnded", args = 0)]
87    pub fn throw_enumeration_not_started_or_ended(self) -> ();
88
89    #[doc = "`System.Collections.IEnumerator.get_Current()` overload"]
90    #[method(name = "System.Collections.IEnumerator.get_Current", args = 0)]
91    pub fn system_collections_i_enumerator_get_current(self) -> crate::system::object::Object;
92
93    #[doc = "`System.Collections.IEnumerator.Reset()` overload"]
94    #[method(name = "System.Collections.IEnumerator.Reset", args = 0)]
95    pub fn system_collections_i_enumerator_reset(self) -> ();
96}
97
98#[cfg(feature = "system-collections-generic-queue_1")]
99#[::unity::methods]
100impl<T0: ::unity::ClassIdentity> Queue_1<T0> {
101    #[doc = "`.ctor()` overload"]
102    #[method(name = ".ctor", args = 0)]
103    pub fn ctor(self) -> ();
104
105    #[doc = "`.ctor(i32)` overload"]
106    #[method(name = ".ctor", args = 1)]
107    pub fn ctor_2(self, capacity: i32) -> ();
108
109    #[doc = "`.ctor(crate::system::collections::generic::ienumerable_1::IEnumerable_1<T0>)` overload"]
110    #[method(name = ".ctor", args = 1)]
111    pub fn ctor_3(self, collection: crate::system::collections::generic::ienumerable_1::IEnumerable_1<T0>) -> ();
112
113    #[doc = "`get_Count()` overload"]
114    #[method(name = "get_Count", args = 0)]
115    pub fn get_count(self) -> i32;
116
117    #[doc = "`System.Collections.ICollection.get_IsSynchronized()` overload"]
118    #[method(name = "System.Collections.ICollection.get_IsSynchronized", args = 0)]
119    pub fn system_collections_i_collection_get_is_synchronized(self) -> bool;
120
121    #[doc = "`System.Collections.ICollection.get_SyncRoot()` overload"]
122    #[method(name = "System.Collections.ICollection.get_SyncRoot", args = 0)]
123    pub fn system_collections_i_collection_get_sync_root(self) -> crate::system::object::Object;
124
125    #[doc = "`Clear()` overload"]
126    #[method(name = "Clear", args = 0)]
127    pub fn clear(self) -> ();
128
129    #[doc = "`System.Collections.ICollection.CopyTo(::unity::IlInstance, i32)` overload"]
130    #[method(name = "System.Collections.ICollection.CopyTo", args = 2)]
131    pub fn system_collections_i_collection_copy_to(self, array: ::unity::IlInstance, index: i32) -> ();
132
133    #[doc = "`Enqueue(T0)` overload"]
134    #[method(name = "Enqueue", args = 1)]
135    pub fn enqueue(self, item: T0) -> ();
136
137    #[doc = "`GetEnumerator()` overload"]
138    #[method(name = "GetEnumerator", args = 0)]
139    pub fn get_enumerator(self) -> crate::system::collections::generic::queue_1::Queue_1_Enumerator<T0>;
140
141    #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
142    #[method(name = "System.Collections.IEnumerable.GetEnumerator", args = 0)]
143    pub fn system_collections_i_enumerable_get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator;
144
145    #[doc = "`Dequeue()` overload"]
146    #[method(name = "Dequeue", args = 0)]
147    pub fn dequeue(self) -> T0;
148
149    #[doc = "`Peek()` overload"]
150    #[method(name = "Peek", args = 0)]
151    pub fn peek(self) -> T0;
152
153    #[doc = "`Contains(T0)` overload"]
154    #[method(name = "Contains", args = 1)]
155    pub fn contains(self, item: T0) -> bool;
156
157    #[doc = "`SetCapacity(i32)` overload"]
158    #[method(name = "SetCapacity", args = 1)]
159    pub fn set_capacity(self, capacity: i32) -> ();
160
161    #[doc = "`MoveNext(*muti32)` overload"]
162    #[method(name = "MoveNext", args = 1)]
163    pub fn move_next(self, index: *mut i32) -> ();
164
165    #[doc = "`ThrowForEmptyQueue()` overload"]
166    #[method(name = "ThrowForEmptyQueue", args = 0)]
167    pub fn throw_for_empty_queue(self) -> ();
168}
169
170#[cfg(feature = "system-collections-generic-queue_1")]
171impl<T0: ::unity::ClassIdentity> Queue_1<T0> {
172    #[doc = "`.ctor()` — no args"]
173    pub fn new() -> Self {
174        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
175            panic!(
176                "{}
177::{}
178 failed to instantiate",
179                ::core::stringify!(Queue_1),
180                ::core::stringify!(new),
181            )
182        });
183        <Self as IQueue_1Methods<T0>>::ctor(this);
184        this
185    }
186
187    #[doc = "`.ctor(i32)` — overload selector"]
188    pub fn new_2(capacity: i32) -> Self {
189        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
190            panic!(
191                "{}
192::{}
193 failed to instantiate",
194                ::core::stringify!(Queue_1),
195                ::core::stringify!(new_2),
196            )
197        });
198        <Self as IQueue_1Methods<T0>>::ctor_2(this, capacity);
199        this
200    }
201
202    #[doc = "`.ctor(crate::system::collections::generic::ienumerable_1::IEnumerable_1<T0>)` — overload selector"]
203    pub fn new_3(collection: crate::system::collections::generic::ienumerable_1::IEnumerable_1<T0>) -> Self {
204        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
205            panic!(
206                "{}
207::{}
208 failed to instantiate",
209                ::core::stringify!(Queue_1),
210                ::core::stringify!(new_3),
211            )
212        });
213        <Self as IQueue_1Methods<T0>>::ctor_3(this, collection);
214        this
215    }
216}
217
218#[cfg(feature = "system-collections-generic-queue_1")]
219#[doc(hidden)]
220pub mod prelude {
221    pub use super::{IQueue_1, IQueue_1Methods, Queue_1, Queue_1_Enumerator};
222    #[cfg(feature = "system-object")]
223    pub use crate::system::object::IObjectMethods;
224    #[cfg(feature = "system-valuetype")]
225    pub use crate::system::valuetype::IValueTypeMethods;
226    pub use crate::system::{object::IObject, valuetype::IValueType};
227}