Skip to main content

engage/generated/system/io/
iterator_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-io-iterator_1-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/iterator_1/Iterator_1.md"))]
11    #[::unity::class(namespace = "System.IO", name = "Iterator`1")]
12    #[parent(crate::system::object::Object)]
13    pub struct Iterator_1<T0: ::unity::ClassIdentity> {
14        #[rename(name = "threadId")]
15        pub thread_id: i32,
16        #[rename(name = "state")]
17        pub state: i32,
18        #[rename(name = "current")]
19        pub current: T0,
20    }
21}
22
23#[cfg(feature = "system-io-iterator_1-types")]
24pub use __types::*;
25
26#[cfg(feature = "system-io-iterator_1")]
27#[::unity::methods]
28impl<T0: ::unity::ClassIdentity> Iterator_1<T0> {
29    #[doc = "`.ctor()` overload"]
30    #[method(name = ".ctor", args = 0)]
31    pub fn ctor(self) -> ();
32
33    #[doc = "`get_Current()` overload"]
34    #[method(name = "get_Current", args = 0)]
35    pub fn get_current(self) -> T0;
36
37    #[doc = "`Clone()` overload"]
38    #[method(name = "Clone", args = 0, abstract_dispatch)]
39    pub fn clone(self) -> crate::system::io::iterator_1::Iterator_1<T0>;
40
41    #[doc = "`Dispose()` overload"]
42    #[method(name = "Dispose", args = 0)]
43    pub fn dispose(self) -> ();
44
45    #[doc = "`Dispose(bool)` overload"]
46    #[method(name = "Dispose", args = 1)]
47    pub fn dispose_2(self, disposing: bool) -> ();
48
49    #[doc = "`GetEnumerator()` overload"]
50    #[method(name = "GetEnumerator", args = 0)]
51    pub fn get_enumerator(self) -> crate::system::collections::generic::ienumerator_1::IEnumerator_1<T0>;
52
53    #[doc = "`MoveNext()` overload"]
54    #[method(name = "MoveNext", args = 0, abstract_dispatch)]
55    pub fn move_next(self) -> bool;
56
57    #[doc = "`System.Collections.IEnumerator.get_Current()` overload"]
58    #[method(name = "System.Collections.IEnumerator.get_Current", args = 0)]
59    pub fn system_collections_i_enumerator_get_current(self) -> crate::system::object::Object;
60
61    #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
62    #[method(name = "System.Collections.IEnumerable.GetEnumerator", args = 0)]
63    pub fn system_collections_i_enumerable_get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator;
64
65    #[doc = "`System.Collections.IEnumerator.Reset()` overload"]
66    #[method(name = "System.Collections.IEnumerator.Reset", args = 0)]
67    pub fn system_collections_i_enumerator_reset(self) -> ();
68}
69
70#[cfg(feature = "system-io-iterator_1")]
71impl<T0: ::unity::ClassIdentity> Iterator_1<T0> {
72    #[doc = "`.ctor()` — no args"]
73    pub fn new() -> Self {
74        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
75            panic!(
76                "{}
77::{}
78 failed to instantiate",
79                ::core::stringify!(Iterator_1),
80                ::core::stringify!(new),
81            )
82        });
83        <Self as IIterator_1Methods<T0>>::ctor(this);
84        this
85    }
86}
87
88#[cfg(feature = "system-io-iterator_1")]
89#[doc(hidden)]
90pub mod prelude {
91    pub use super::{IIterator_1, IIterator_1Methods, Iterator_1};
92    pub use crate::system::object::IObject;
93    #[cfg(feature = "system-object")]
94    pub use crate::system::object::IObjectMethods;
95}