Skip to main content

engage/generated/unity_engine/resource_management/util/
linkedlistnodecache_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-resource_management-util-linkedlistnodecache_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/unity_engine/resource_management/util/linkedlistnodecache_1/LinkedListNodeCache_1.md"))]
11    #[::unity::class(namespace = "UnityEngine.ResourceManagement.Util", name = "LinkedListNodeCache`1")]
12    #[parent(crate::system::object::Object)]
13    pub struct LinkedListNodeCache_1<T0: ::unity::ClassIdentity> {
14        #[rename(name = "m_NodesCreated")]
15        pub m_nodes_created: i32,
16        #[rename(name = "m_NodeCache")]
17        pub m_node_cache: crate::system::collections::generic::linkedlist_1::LinkedList_1<T0>,
18    }
19}
20
21#[cfg(feature = "unity_engine-resource_management-util-linkedlistnodecache_1-types")]
22pub use __types::*;
23
24#[cfg(feature = "unity_engine-resource_management-util-linkedlistnodecache_1")]
25#[::unity::methods]
26impl<T0: ::unity::ClassIdentity> LinkedListNodeCache_1<T0> {
27    #[doc = "`Acquire(T0)` overload"]
28    #[method(name = "Acquire", args = 1)]
29    pub fn acquire(self, val: T0) -> crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>;
30
31    #[doc = "`Release(crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>)` overload"]
32    #[method(name = "Release", args = 1)]
33    pub fn release(self, node: crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<T0>) -> ();
34
35    #[doc = "`get_CreatedNodeCount()` overload"]
36    #[method(name = "get_CreatedNodeCount", args = 0)]
37    pub fn get_created_node_count(self) -> i32;
38
39    #[doc = "`get_CachedNodeCount()` overload"]
40    #[method(name = "get_CachedNodeCount", args = 0)]
41    pub fn get_cached_node_count(self) -> i32;
42
43    #[doc = "`.ctor()` overload"]
44    #[method(name = ".ctor", args = 0)]
45    pub fn ctor(self) -> ();
46}
47
48#[cfg(feature = "unity_engine-resource_management-util-linkedlistnodecache_1")]
49impl<T0: ::unity::ClassIdentity> LinkedListNodeCache_1<T0> {
50    #[doc = "`.ctor()` — no args"]
51    pub fn new() -> Self {
52        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
53            panic!(
54                "{}
55::{}
56 failed to instantiate",
57                ::core::stringify!(LinkedListNodeCache_1),
58                ::core::stringify!(new),
59            )
60        });
61        <Self as ILinkedListNodeCache_1Methods<T0>>::ctor(this);
62        this
63    }
64}
65
66#[cfg(feature = "unity_engine-resource_management-util-linkedlistnodecache_1")]
67#[doc(hidden)]
68pub mod prelude {
69    pub use super::{ILinkedListNodeCache_1, ILinkedListNodeCache_1Methods, LinkedListNodeCache_1};
70    pub use crate::system::object::IObject;
71    #[cfg(feature = "system-object")]
72    pub use crate::system::object::IObjectMethods;
73}