Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-data_structs-slice_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/slice_1/Slice_1.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter.DataStructs", name = "Slice`1")]
12    #[parent(crate::system::object::Object)]
13    pub struct Slice_1<T0: ::unity::ClassIdentity> {
14        #[rename(name = "m_SourceList")]
15        pub m_source_list: crate::system::collections::generic::ilist_1_interface::IList_1_Interface<T0>,
16        #[rename(name = "m_From")]
17        pub m_from: i32,
18        #[rename(name = "m_Length")]
19        pub m_length: i32,
20        #[rename(name = "m_Reversed")]
21        pub m_reversed: bool,
22    }
23}
24
25#[cfg(feature = "moon_sharp-interpreter-data_structs-slice_1-types")]
26pub use __types::*;
27
28#[cfg(feature = "moon_sharp-interpreter-data_structs-slice_1")]
29#[::unity::methods]
30impl<T0: ::unity::ClassIdentity> Slice_1<T0> {
31    #[doc = "`.ctor(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<T0>, i32, i32, bool)` overload"]
32    #[method(name = ".ctor", args = 4)]
33    pub fn ctor(
34        self,
35        list: crate::system::collections::generic::ilist_1_interface::IList_1_Interface<T0>,
36        from: i32,
37        length: i32,
38        reversed: bool,
39    ) -> ();
40
41    #[doc = "`get_Item(i32)` overload"]
42    #[method(name = "get_Item", args = 1)]
43    pub fn get_item(self, index: i32) -> T0;
44
45    #[doc = "`set_Item(i32, T0)` overload"]
46    #[method(name = "set_Item", args = 2)]
47    pub fn set_item(self, index: i32, value: T0) -> ();
48
49    #[doc = "`get_From()` overload"]
50    #[method(name = "get_From", args = 0)]
51    pub fn get_from(self) -> i32;
52
53    #[doc = "`get_Count()` overload"]
54    #[method(name = "get_Count", args = 0)]
55    pub fn get_count(self) -> i32;
56
57    #[doc = "`get_Reversed()` overload"]
58    #[method(name = "get_Reversed", args = 0)]
59    pub fn get_reversed(self) -> bool;
60
61    #[doc = "`CalcRealIndex(i32)` overload"]
62    #[method(name = "CalcRealIndex", args = 1)]
63    pub fn calc_real_index(self, index: i32) -> i32;
64
65    #[doc = "`GetEnumerator()` overload"]
66    #[method(name = "GetEnumerator", args = 0)]
67    pub fn get_enumerator(self) -> crate::system::collections::generic::ienumerator_1::IEnumerator_1<T0>;
68
69    #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
70    #[method(name = "System.Collections.IEnumerable.GetEnumerator", args = 0)]
71    pub fn system_collections_i_enumerable_get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator;
72
73    #[doc = "`ToArray()` overload"]
74    #[method(name = "ToArray", args = 0)]
75    pub fn to_array(self) -> ::unity::Array<T0>;
76
77    #[doc = "`ToList()` overload"]
78    #[method(name = "ToList", args = 0)]
79    pub fn to_list(self) -> crate::system::collections::generic::list_1::List_1<T0>;
80
81    #[doc = "`IndexOf(T0)` overload"]
82    #[method(name = "IndexOf", args = 1)]
83    pub fn index_of(self, item: T0) -> i32;
84
85    #[doc = "`Insert(i32, T0)` overload"]
86    #[method(name = "Insert", args = 2)]
87    pub fn insert(self, index: i32, item: T0) -> ();
88
89    #[doc = "`RemoveAt(i32)` overload"]
90    #[method(name = "RemoveAt", args = 1)]
91    pub fn remove_at(self, index: i32) -> ();
92
93    #[doc = "`Add(T0)` overload"]
94    #[method(name = "Add", args = 1)]
95    pub fn add(self, item: T0) -> ();
96
97    #[doc = "`Clear()` overload"]
98    #[method(name = "Clear", args = 0)]
99    pub fn clear(self) -> ();
100
101    #[doc = "`Contains(T0)` overload"]
102    #[method(name = "Contains", args = 1)]
103    pub fn contains(self, item: T0) -> bool;
104
105    #[doc = "`CopyTo(::unity::Array<T0>, i32)` overload"]
106    #[method(name = "CopyTo", args = 2)]
107    pub fn copy_to(self, array: ::unity::Array<T0>, array_index: i32) -> ();
108
109    #[doc = "`get_IsReadOnly()` overload"]
110    #[method(name = "get_IsReadOnly", args = 0)]
111    pub fn get_is_read_only(self) -> bool;
112
113    #[doc = "`Remove(T0)` overload"]
114    #[method(name = "Remove", args = 1)]
115    pub fn remove(self, item: T0) -> bool;
116}
117
118#[cfg(feature = "moon_sharp-interpreter-data_structs-slice_1")]
119impl<T0: ::unity::ClassIdentity> Slice_1<T0> {
120    #[doc = "`.ctor(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<T0>, i32, i32, bool)` — overload selector"]
121    pub fn new(list: crate::system::collections::generic::ilist_1_interface::IList_1_Interface<T0>, from: i32, length: i32, reversed: bool) -> Self {
122        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
123            panic!(
124                "{}
125::{}
126 failed to instantiate",
127                ::core::stringify!(Slice_1),
128                ::core::stringify!(new),
129            )
130        });
131        <Self as ISlice_1Methods<T0>>::ctor(this, list, from, length, reversed);
132        this
133    }
134}
135
136#[cfg(feature = "moon_sharp-interpreter-data_structs-slice_1")]
137#[doc(hidden)]
138pub mod prelude {
139    pub use super::{ISlice_1, ISlice_1Methods, Slice_1};
140    pub use crate::system::object::IObject;
141    #[cfg(feature = "system-object")]
142    pub use crate::system::object::IObjectMethods;
143}