Skip to main content

engage/generated/moon_sharp/interpreter/data_structs/
faststack_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-data_structs-faststack_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/moon_sharp/interpreter/data_structs/faststack_1/FastStack_1.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter.DataStructs", name = "FastStack`1")]
12    #[parent(crate::system::object::Object)]
13    pub struct FastStack_1<T0: ::unity::ClassIdentity> {
14        #[rename(name = "m_Storage")]
15        pub m_storage: ::unity::Array<T0>,
16        #[rename(name = "m_HeadIdx")]
17        pub m_head_idx: i32,
18    }
19}
20
21#[cfg(feature = "moon_sharp-interpreter-data_structs-faststack_1-types")]
22pub use __types::*;
23
24#[cfg(feature = "moon_sharp-interpreter-data_structs-faststack_1")]
25#[::unity::methods]
26impl<T0: ::unity::ClassIdentity> FastStack_1<T0> {
27    #[doc = "`.ctor(i32)` overload"]
28    #[method(name = ".ctor", args = 1)]
29    pub fn ctor(self, max_capacity: i32) -> ();
30
31    #[doc = "`get_Item(i32)` overload"]
32    #[method(name = "get_Item", args = 1)]
33    pub fn get_item(self, index: i32) -> T0;
34
35    #[doc = "`set_Item(i32, T0)` overload"]
36    #[method(name = "set_Item", args = 2)]
37    pub fn set_item(self, index: i32, value: T0) -> ();
38
39    #[doc = "`Push(T0)` overload"]
40    #[method(name = "Push", args = 1)]
41    pub fn push(self, item: T0) -> T0;
42
43    #[doc = "`Expand(i32)` overload"]
44    #[method(name = "Expand", args = 1)]
45    pub fn expand(self, size: i32) -> ();
46
47    #[doc = "`Zero(i32, i32)` overload"]
48    #[method(name = "Zero", args = 2)]
49    pub fn zero(self, from: i32, to: i32) -> ();
50
51    #[doc = "`Zero(i32)` overload"]
52    #[method(name = "Zero", args = 1)]
53    pub fn zero_2(self, index: i32) -> ();
54
55    #[doc = "`Peek(i32)` overload"]
56    #[method(name = "Peek", args = 1)]
57    pub fn peek(self, idxofs: i32) -> T0;
58
59    #[doc = "`Set(i32, T0)` overload"]
60    #[method(name = "Set", args = 2)]
61    pub fn set(self, idxofs: i32, item: T0) -> ();
62
63    #[doc = "`CropAtCount(i32)` overload"]
64    #[method(name = "CropAtCount", args = 1)]
65    pub fn crop_at_count(self, p: i32) -> ();
66
67    #[doc = "`RemoveLast(i32)` overload"]
68    #[method(name = "RemoveLast", args = 1)]
69    pub fn remove_last(self, cnt: i32) -> ();
70
71    #[doc = "`Pop()` overload"]
72    #[method(name = "Pop", args = 0)]
73    pub fn pop(self) -> T0;
74
75    #[doc = "`Clear()` overload"]
76    #[method(name = "Clear", args = 0)]
77    pub fn clear(self) -> ();
78
79    #[doc = "`get_Count()` overload"]
80    #[method(name = "get_Count", args = 0)]
81    pub fn get_count(self) -> i32;
82
83    #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
84    #[method(name = "System.Collections.IEnumerable.GetEnumerator", args = 0)]
85    pub fn system_collections_i_enumerable_get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator;
86}
87
88#[cfg(feature = "moon_sharp-interpreter-data_structs-faststack_1")]
89impl<T0: ::unity::ClassIdentity> FastStack_1<T0> {
90    #[doc = "`.ctor(i32)` — overload selector"]
91    pub fn new(max_capacity: i32) -> Self {
92        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
93            panic!(
94                "{}
95::{}
96 failed to instantiate",
97                ::core::stringify!(FastStack_1),
98                ::core::stringify!(new),
99            )
100        });
101        <Self as IFastStack_1Methods<T0>>::ctor(this, max_capacity);
102        this
103    }
104}
105
106#[cfg(feature = "moon_sharp-interpreter-data_structs-faststack_1")]
107#[doc(hidden)]
108pub mod prelude {
109    pub use super::{FastStack_1, IFastStack_1, IFastStack_1Methods};
110    pub use crate::system::object::IObject;
111    #[cfg(feature = "system-object")]
112    pub use crate::system::object::IObjectMethods;
113}