engage/generated/moon_sharp/interpreter/data_structs/
linkedlistindex_2.rs1#[cfg(feature = "moon_sharp-interpreter-data_structs-linkedlistindex_2-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/linkedlistindex_2/LinkedListIndex_2.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter.DataStructs", name = "LinkedListIndex`2")]
12 #[parent(crate::system::object::Object)]
13 pub struct LinkedListIndex_2<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> {
14 #[rename(name = "m_LinkedList")]
15 pub m_linked_list: crate::system::collections::generic::linkedlist_1::LinkedList_1<T1>,
16 #[rename(name = "m_Map")]
17 pub m_map: crate::system::collections::generic::dictionary_2::Dictionary_2<
18 T0,
19 crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T1>,
20 >,
21 }
22}
23
24#[cfg(feature = "moon_sharp-interpreter-data_structs-linkedlistindex_2-types")]
25pub use __types::*;
26
27#[cfg(feature = "moon_sharp-interpreter-data_structs-linkedlistindex_2")]
28#[::unity::methods]
29impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> LinkedListIndex_2<T0, T1> {
30 #[doc = "`.ctor(crate::system::collections::generic::linkedlist_1::LinkedList_1<T1>)` overload"]
31 #[method(name = ".ctor", args = 1)]
32 pub fn ctor(self, linked_list: crate::system::collections::generic::linkedlist_1::LinkedList_1<T1>) -> ();
33
34 #[doc = "`Find(T0)` overload"]
35 #[method(name = "Find", args = 1)]
36 pub fn find(self, key: T0) -> crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T1>;
37
38 #[doc = "`Set(T0, T1)` overload"]
39 #[method(name = "Set", args = 2)]
40 pub fn set(self, key: T0, value: T1) -> T1;
41
42 #[doc = "`Add(T0, T1)` overload"]
43 #[method(name = "Add", args = 2)]
44 pub fn add(self, key: T0, value: T1) -> ();
45
46 #[doc = "`Remove(T0)` overload"]
47 #[method(name = "Remove", args = 1)]
48 pub fn remove(self, key: T0) -> bool;
49
50 #[doc = "`ContainsKey(T0)` overload"]
51 #[method(name = "ContainsKey", args = 1)]
52 pub fn contains_key(self, key: T0) -> bool;
53
54 #[doc = "`Clear()` overload"]
55 #[method(name = "Clear", args = 0)]
56 pub fn clear(self) -> ();
57}
58
59#[cfg(feature = "moon_sharp-interpreter-data_structs-linkedlistindex_2")]
60impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> LinkedListIndex_2<T0, T1> {
61 #[doc = "`.ctor(crate::system::collections::generic::linkedlist_1::LinkedList_1<T1>)` — overload selector"]
62 pub fn new(linked_list: crate::system::collections::generic::linkedlist_1::LinkedList_1<T1>) -> Self {
63 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
64 panic!(
65 "{}
66::{}
67 failed to instantiate",
68 ::core::stringify!(LinkedListIndex_2),
69 ::core::stringify!(new),
70 )
71 });
72 <Self as ILinkedListIndex_2Methods<T0, T1>>::ctor(this, linked_list);
73 this
74 }
75}
76
77#[cfg(feature = "moon_sharp-interpreter-data_structs-linkedlistindex_2")]
78#[doc(hidden)]
79pub mod prelude {
80 pub use super::{ILinkedListIndex_2, ILinkedListIndex_2Methods, LinkedListIndex_2};
81 pub use crate::system::object::IObject;
82 #[cfg(feature = "system-object")]
83 pub use crate::system::object::IObjectMethods;
84}