Skip to main content

engage/generated/system/collections/generic/
linkedlistnode_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-collections-generic-linkedlistnode_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/collections/generic/linkedlistnode_1/LinkedListNode_1.md"))]
11    #[::unity::class(namespace = "System.Collections.Generic", name = "LinkedListNode`1")]
12    #[parent(crate::system::object::Object)]
13    pub struct LinkedListNode_1<T0: ::unity::ClassIdentity> {
14        #[rename(name = "list")]
15        pub list: crate::system::collections::generic::linkedlist_1::LinkedList_1<T0>,
16        #[rename(name = "next")]
17        pub next: crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>,
18        #[rename(name = "prev")]
19        pub prev: crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>,
20        #[rename(name = "item")]
21        pub item: T0,
22    }
23}
24
25#[cfg(feature = "system-collections-generic-linkedlistnode_1-types")]
26pub use __types::*;
27
28#[cfg(feature = "system-collections-generic-linkedlistnode_1")]
29#[::unity::methods]
30impl<T0: ::unity::ClassIdentity> LinkedListNode_1<T0> {
31    #[doc = "`.ctor(T0)` overload"]
32    #[method(name = ".ctor", args = 1)]
33    pub fn ctor(self, value: T0) -> ();
34
35    #[doc = "`.ctor(crate::system::collections::generic::linkedlist_1::LinkedList_1<T0>, T0)` overload"]
36    #[method(name = ".ctor", args = 2)]
37    pub fn ctor_2(self, list: crate::system::collections::generic::linkedlist_1::LinkedList_1<T0>, value: T0) -> ();
38
39    #[doc = "`get_List()` overload"]
40    #[method(name = "get_List", args = 0)]
41    pub fn get_list(self) -> crate::system::collections::generic::linkedlist_1::LinkedList_1<T0>;
42
43    #[doc = "`get_Next()` overload"]
44    #[method(name = "get_Next", args = 0)]
45    pub fn get_next(self) -> crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>;
46
47    #[doc = "`get_Previous()` overload"]
48    #[method(name = "get_Previous", args = 0)]
49    pub fn get_previous(self) -> crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>;
50
51    #[doc = "`get_Value()` overload"]
52    #[method(name = "get_Value", args = 0)]
53    pub fn get_value(self) -> T0;
54
55    #[doc = "`set_Value(T0)` overload"]
56    #[method(name = "set_Value", args = 1)]
57    pub fn set_value(self, value: T0) -> ();
58
59    #[doc = "`Invalidate()` overload"]
60    #[method(name = "Invalidate", args = 0)]
61    pub fn invalidate(self) -> ();
62}
63
64#[cfg(feature = "system-collections-generic-linkedlistnode_1")]
65impl<T0: ::unity::ClassIdentity> LinkedListNode_1<T0> {
66    #[doc = "`.ctor(T0)` — overload selector"]
67    pub fn new(value: T0) -> Self {
68        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
69            panic!(
70                "{}
71::{}
72 failed to instantiate",
73                ::core::stringify!(LinkedListNode_1),
74                ::core::stringify!(new),
75            )
76        });
77        <Self as ILinkedListNode_1Methods<T0>>::ctor(this, value);
78        this
79    }
80
81    #[doc = "`.ctor(crate::system::collections::generic::linkedlist_1::LinkedList_1<T0>, T0)` — overload selector"]
82    pub fn new_2(list: crate::system::collections::generic::linkedlist_1::LinkedList_1<T0>, value: T0) -> Self {
83        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
84            panic!(
85                "{}
86::{}
87 failed to instantiate",
88                ::core::stringify!(LinkedListNode_1),
89                ::core::stringify!(new_2),
90            )
91        });
92        <Self as ILinkedListNode_1Methods<T0>>::ctor_2(this, list, value);
93        this
94    }
95}
96
97#[cfg(feature = "system-collections-generic-linkedlistnode_1")]
98#[doc(hidden)]
99pub mod prelude {
100    pub use super::{ILinkedListNode_1, ILinkedListNode_1Methods, LinkedListNode_1};
101    pub use crate::system::object::IObject;
102    #[cfg(feature = "system-object")]
103    pub use crate::system::object::IObjectMethods;
104}