engage/generated/system/collections/generic/
linkedlist_1.rs1#[cfg(feature = "system-collections-generic-linkedlist_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/linkedlist_1/LinkedList_1_Enumerator.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct LinkedList_1_Enumerator<T0> {
17 pub _phantom: ::core::marker::PhantomData<(T0,)>,
18 }
19 impl<T0: ::unity::ClassIdentity> ::unity::ClassIdentity for LinkedList_1_Enumerator<T0> {
20 const NAME: &'static str = "LinkedList`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 LinkedList_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/linkedlist_1/LinkedList_1.md"))]
39 #[::unity::class(namespace = "System.Collections.Generic", name = "LinkedList`1")]
40 #[parent(crate::system::object::Object)]
41 pub struct LinkedList_1<T0: ::unity::ClassIdentity> {
42 #[rename(name = "head")]
43 pub head: crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>,
44 #[rename(name = "count")]
45 pub count: i32,
46 #[rename(name = "version")]
47 pub version: i32,
48 #[rename(name = "_syncRoot")]
49 pub sync_root: ::unity::IlInstance,
50 #[static_field]
51 #[rename(name = "VersionName")]
52 pub version_name: ::unity::Il2CppString,
53 #[static_field]
54 #[rename(name = "CountName")]
55 pub count_name: ::unity::Il2CppString,
56 #[static_field]
57 #[rename(name = "ValuesName")]
58 pub values_name: ::unity::Il2CppString,
59 }
60}
61
62#[cfg(feature = "system-collections-generic-linkedlist_1-types")]
63pub use __types::*;
64
65#[cfg(feature = "system-collections-generic-linkedlist_1")]
66#[::unity::methods(value)]
67impl<T0: ::unity::ClassIdentity> LinkedList_1_Enumerator<T0> {
68 #[doc = "`.ctor(crate::system::collections::generic::linkedlist_1::LinkedList_1<T0>)` overload"]
69 #[method(name = ".ctor", args = 1)]
70 pub fn ctor(self, list: crate::system::collections::generic::linkedlist_1::LinkedList_1<T0>) -> ();
71
72 #[doc = "`get_Current()` overload"]
73 #[method(name = "get_Current", args = 0)]
74 pub fn get_current(self) -> T0;
75
76 #[doc = "`System.Collections.IEnumerator.get_Current()` overload"]
77 #[method(name = "System.Collections.IEnumerator.get_Current", args = 0)]
78 pub fn system_collections_i_enumerator_get_current(self) -> crate::system::object::Object;
79
80 #[doc = "`MoveNext()` overload"]
81 #[method(name = "MoveNext", args = 0)]
82 pub fn move_next(self) -> bool;
83
84 #[doc = "`System.Collections.IEnumerator.Reset()` overload"]
85 #[method(name = "System.Collections.IEnumerator.Reset", args = 0)]
86 pub fn system_collections_i_enumerator_reset(self) -> ();
87
88 #[doc = "`Dispose()` overload"]
89 #[method(name = "Dispose", args = 0)]
90 pub fn dispose(self) -> ();
91
92 #[doc = "`System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(crate::system::object::Object)` overload"]
93 #[method(name = "System.Runtime.Serialization.IDeserializationCallback.OnDeserialization", args = 1)]
94 pub fn system_runtime_serialization_i_deserialization_callback_on_deserialization(self, sender: crate::system::object::Object) -> ();
95}
96
97#[cfg(feature = "system-collections-generic-linkedlist_1")]
98#[::unity::methods]
99impl<T0: ::unity::ClassIdentity> LinkedList_1<T0> {
100 #[doc = "`.ctor()` overload"]
101 #[method(name = ".ctor", args = 0)]
102 pub fn ctor(self) -> ();
103
104 #[doc = "`get_Count()` overload"]
105 #[method(name = "get_Count", args = 0)]
106 pub fn get_count(self) -> i32;
107
108 #[doc = "`get_First()` overload"]
109 #[method(name = "get_First", args = 0)]
110 pub fn get_first(self) -> crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>;
111
112 #[doc = "`get_Last()` overload"]
113 #[method(name = "get_Last", args = 0)]
114 pub fn get_last(self) -> crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>;
115
116 #[doc = "`AddBefore(crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>, crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>)` overload"]
117 #[method(name = "AddBefore", args = 2)]
118 pub fn add_before(
119 self,
120 node: crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>,
121 new_node: crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>,
122 ) -> ();
123
124 #[doc = "`AddFirst(T0)` overload"]
125 #[method(name = "AddFirst", args = 1)]
126 pub fn add_first(self, value: T0) -> crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>;
127
128 #[doc = "`AddFirst(crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>)` overload"]
129 #[method(name = "AddFirst", args = 1)]
130 pub fn add_first_2(self, node: crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>) -> ();
131
132 #[doc = "`AddLast(T0)` overload"]
133 #[method(name = "AddLast", args = 1)]
134 pub fn add_last(self, value: T0) -> crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>;
135
136 #[doc = "`AddLast(crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>)` overload"]
137 #[method(name = "AddLast", args = 1)]
138 pub fn add_last_2(self, node: crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>) -> ();
139
140 #[doc = "`Clear()` overload"]
141 #[method(name = "Clear", args = 0)]
142 pub fn clear(self) -> ();
143
144 #[doc = "`Contains(T0)` overload"]
145 #[method(name = "Contains", args = 1)]
146 pub fn contains(self, value: T0) -> bool;
147
148 #[doc = "`CopyTo(::unity::Array<T0>, i32)` overload"]
149 #[method(name = "CopyTo", args = 2)]
150 pub fn copy_to(self, array: ::unity::Array<T0>, index: i32) -> ();
151
152 #[doc = "`Find(T0)` overload"]
153 #[method(name = "Find", args = 1)]
154 pub fn find(self, value: T0) -> crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>;
155
156 #[doc = "`GetEnumerator()` overload"]
157 #[method(name = "GetEnumerator", args = 0)]
158 pub fn get_enumerator(self) -> crate::system::collections::generic::linkedlist_1::LinkedList_1_Enumerator<T0>;
159
160 #[doc = "`Remove(T0)` overload"]
161 #[method(name = "Remove", args = 1)]
162 pub fn remove(self, value: T0) -> bool;
163
164 #[doc = "`Remove(crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>)` overload"]
165 #[method(name = "Remove", args = 1)]
166 pub fn remove_2(self, node: crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>) -> ();
167
168 #[doc = "`RemoveFirst()` overload"]
169 #[method(name = "RemoveFirst", args = 0)]
170 pub fn remove_first(self) -> ();
171
172 #[doc = "`RemoveLast()` overload"]
173 #[method(name = "RemoveLast", args = 0)]
174 pub fn remove_last(self) -> ();
175
176 #[doc = "`OnDeserialization(crate::system::object::Object)` overload"]
177 #[method(name = "OnDeserialization", args = 1)]
178 pub fn on_deserialization(self, sender: crate::system::object::Object) -> ();
179
180 #[doc = "`InternalInsertNodeBefore(crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>, crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>)` overload"]
181 #[method(name = "InternalInsertNodeBefore", args = 2)]
182 pub fn internal_insert_node_before(
183 self,
184 node: crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>,
185 new_node: crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>,
186 ) -> ();
187
188 #[doc = "`InternalInsertNodeToEmptyList(crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>)` overload"]
189 #[method(name = "InternalInsertNodeToEmptyList", args = 1)]
190 pub fn internal_insert_node_to_empty_list(self, new_node: crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>) -> ();
191
192 #[doc = "`InternalRemoveNode(crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>)` overload"]
193 #[method(name = "InternalRemoveNode", args = 1)]
194 pub fn internal_remove_node(self, node: crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>) -> ();
195
196 #[doc = "`ValidateNewNode(crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>)` overload"]
197 #[method(name = "ValidateNewNode", args = 1)]
198 pub fn validate_new_node(self, node: crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>) -> ();
199
200 #[doc = "`ValidateNode(crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>)` overload"]
201 #[method(name = "ValidateNode", args = 1)]
202 pub fn validate_node(self, node: crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>) -> ();
203
204 #[doc = "`System.Collections.ICollection.get_IsSynchronized()` overload"]
205 #[method(name = "System.Collections.ICollection.get_IsSynchronized", args = 0)]
206 pub fn system_collections_i_collection_get_is_synchronized(self) -> bool;
207
208 #[doc = "`System.Collections.ICollection.get_SyncRoot()` overload"]
209 #[method(name = "System.Collections.ICollection.get_SyncRoot", args = 0)]
210 pub fn system_collections_i_collection_get_sync_root(self) -> crate::system::object::Object;
211
212 #[doc = "`System.Collections.ICollection.CopyTo(::unity::IlInstance, i32)` overload"]
213 #[method(name = "System.Collections.ICollection.CopyTo", args = 2)]
214 pub fn system_collections_i_collection_copy_to(self, array: ::unity::IlInstance, index: i32) -> ();
215
216 #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
217 #[method(name = "System.Collections.IEnumerable.GetEnumerator", args = 0)]
218 pub fn system_collections_i_enumerable_get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator;
219}
220
221#[cfg(feature = "system-collections-generic-linkedlist_1")]
222impl<T0: ::unity::ClassIdentity> LinkedList_1<T0> {
223 #[doc = "`.ctor()` — no args"]
224 pub fn new() -> Self {
225 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
226 panic!(
227 "{}
228::{}
229 failed to instantiate",
230 ::core::stringify!(LinkedList_1),
231 ::core::stringify!(new),
232 )
233 });
234 <Self as ILinkedList_1Methods<T0>>::ctor(this);
235 this
236 }
237}
238
239#[cfg(feature = "system-collections-generic-linkedlist_1")]
240#[doc(hidden)]
241pub mod prelude {
242 pub use super::{ILinkedList_1, ILinkedList_1Methods, LinkedList_1, LinkedList_1_Enumerator};
243 #[cfg(feature = "system-object")]
244 pub use crate::system::object::IObjectMethods;
245 #[cfg(feature = "system-valuetype")]
246 pub use crate::system::valuetype::IValueTypeMethods;
247 pub use crate::system::{object::IObject, valuetype::IValueType};
248}