engage/generated/unity_engine/rendering/
listchangedeventargs_1.rs1#[cfg(feature = "unity_engine-rendering-listchangedeventargs_1-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8
9 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/listchangedeventargs_1/ListChangedEventArgs_1.md"))]
10 #[::unity::class(namespace = "UnityEngine.Rendering", name = "ListChangedEventArgs`1")]
11 pub struct ListChangedEventArgs_1<T0: ::unity::ClassIdentity> {
12 #[rename(name = "index")]
13 pub index: i32,
14 #[rename(name = "item")]
15 pub item: T0,
16 }
17}
18
19#[cfg(feature = "unity_engine-rendering-listchangedeventargs_1-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-rendering-listchangedeventargs_1")]
23#[::unity::methods]
24impl<T0: ::unity::ClassIdentity> ListChangedEventArgs_1<T0> {
25 #[doc = "`.ctor(i32, T0)` overload"]
26 #[method(name = ".ctor", args = 2)]
27 pub fn ctor(self, index: i32, item: T0) -> ();
28}
29
30#[cfg(feature = "unity_engine-rendering-listchangedeventargs_1")]
31impl<T0: ::unity::ClassIdentity> ListChangedEventArgs_1<T0> {
32 #[doc = "`.ctor(i32, T0)` — overload selector"]
33 pub fn new(index: i32, item: T0) -> Self {
34 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
35 panic!(
36 "{}
37::{}
38 failed to instantiate",
39 ::core::stringify!(ListChangedEventArgs_1),
40 ::core::stringify!(new),
41 )
42 });
43 <Self as IListChangedEventArgs_1Methods<T0>>::ctor(this, index, item);
44 this
45 }
46}
47
48#[cfg(feature = "unity_engine-rendering-listchangedeventargs_1")]
49#[doc(hidden)]
50pub mod prelude {
51 pub use super::{IListChangedEventArgs_1, IListChangedEventArgs_1Methods, ListChangedEventArgs_1};
52}