Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-data_structs-faststackdynamic_1-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        collections::generic::list_1::{IList_1, List_1},
10        object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/data_structs/faststackdynamic_1/FastStackDynamic_1.md"))]
14    #[::unity::class(namespace = "MoonSharp.Interpreter.DataStructs", name = "FastStackDynamic`1")]
15    #[parent(crate::system::collections::generic::list_1::List_1<T0>)]
16    #[parent(crate::system::object::Object)]
17    pub struct FastStackDynamic_1<T0: ::unity::ClassIdentity> {}
18}
19
20#[cfg(feature = "moon_sharp-interpreter-data_structs-faststackdynamic_1-types")]
21pub use __types::*;
22
23#[cfg(feature = "moon_sharp-interpreter-data_structs-faststackdynamic_1")]
24#[::unity::methods]
25impl<T0: ::unity::ClassIdentity> FastStackDynamic_1<T0> {
26    #[doc = "`.ctor(i32)` overload"]
27    #[method(name = ".ctor", args = 1)]
28    pub fn ctor(self, starting_capacity: i32) -> ();
29
30    #[doc = "`Set(i32, T0)` overload"]
31    #[method(name = "Set", args = 2)]
32    pub fn set(self, idxofs: i32, item: T0) -> ();
33
34    #[doc = "`Push(T0)` overload"]
35    #[method(name = "Push", args = 1)]
36    pub fn push(self, item: T0) -> T0;
37
38    #[doc = "`Expand(i32)` overload"]
39    #[method(name = "Expand", args = 1)]
40    pub fn expand(self, size: i32) -> ();
41
42    #[doc = "`Zero(i32)` overload"]
43    #[method(name = "Zero", args = 1)]
44    pub fn zero(self, index: i32) -> ();
45
46    #[doc = "`Peek(i32)` overload"]
47    #[method(name = "Peek", args = 1)]
48    pub fn peek(self, idxofs: i32) -> T0;
49
50    #[doc = "`CropAtCount(i32)` overload"]
51    #[method(name = "CropAtCount", args = 1)]
52    pub fn crop_at_count(self, p: i32) -> ();
53
54    #[doc = "`RemoveLast(i32)` overload"]
55    #[method(name = "RemoveLast", args = 1)]
56    pub fn remove_last(self, cnt: i32) -> ();
57
58    #[doc = "`Pop()` overload"]
59    #[method(name = "Pop", args = 0)]
60    pub fn pop(self) -> T0;
61}
62
63#[cfg(feature = "moon_sharp-interpreter-data_structs-faststackdynamic_1")]
64impl<T0: ::unity::ClassIdentity> FastStackDynamic_1<T0> {
65    #[doc = "`.ctor(i32)` — overload selector"]
66    pub fn new(starting_capacity: i32) -> Self {
67        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
68            panic!(
69                "{}
70::{}
71 failed to instantiate",
72                ::core::stringify!(FastStackDynamic_1),
73                ::core::stringify!(new),
74            )
75        });
76        <Self as IFastStackDynamic_1Methods<T0>>::ctor(this, starting_capacity);
77        this
78    }
79}
80
81#[cfg(feature = "moon_sharp-interpreter-data_structs-faststackdynamic_1")]
82#[doc(hidden)]
83pub mod prelude {
84    pub use super::{FastStackDynamic_1, IFastStackDynamic_1, IFastStackDynamic_1Methods};
85    #[cfg(feature = "system-collections-generic-list_1")]
86    pub use crate::system::collections::generic::list_1::IList_1Methods;
87    #[cfg(feature = "system-object")]
88    pub use crate::system::object::IObjectMethods;
89    pub use crate::system::{collections::generic::list_1::IList_1, object::IObject};
90}