engage/generated/app/
bitfieldtemplate32_1.rs1#[cfg(feature = "app-bitfieldtemplate32_1-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 bitfield32::{BitField32, IBitField32},
11 bitfieldcommon::{BitFieldCommon, IBitFieldCommon},
12 },
13 system::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/bitfieldtemplate32_1/BitFieldTemplate32_1.md"))]
17 #[::unity::class(namespace = "App", name = "BitFieldTemplate32`1")]
18 #[parent(crate::app::bitfield32::BitField32)]
19 #[parent(crate::app::bitfieldcommon::BitFieldCommon)]
20 #[parent(crate::system::object::Object)]
21 pub struct BitFieldTemplate32_1<T0: ::unity::ClassIdentity> {}
22}
23
24#[cfg(feature = "app-bitfieldtemplate32_1-types")]
25pub use __types::*;
26
27#[cfg(feature = "app-bitfieldtemplate32_1")]
28#[::unity::methods]
29impl<T0: ::unity::ClassIdentity> BitFieldTemplate32_1<T0> {
30 #[doc = "`get_ValueType()` overload"]
31 #[method(name = "get_ValueType", args = 0)]
32 pub fn get_value_type(self) -> ::unity::SystemType;
33
34 #[doc = "`ToInt(T0)` overload"]
35 #[method(name = "ToInt", args = 1, abstract_dispatch)]
36 pub fn to_int(self, value: T0) -> i32;
37
38 #[doc = "`.ctor()` overload"]
39 #[method(name = ".ctor", args = 0)]
40 pub fn ctor(self) -> ();
41
42 #[doc = "`Set(T0)` overload"]
43 #[method(name = "Set", args = 1)]
44 pub fn set(self, f: T0) -> ();
45
46 #[doc = "`Clear(T0)` overload"]
47 #[method(name = "Clear", args = 1)]
48 pub fn clear(self, f: T0) -> ();
49
50 #[doc = "`Change(T0)` overload"]
51 #[method(name = "Change", args = 1)]
52 pub fn change(self, f: T0) -> ();
53
54 #[doc = "`Mask(T0)` overload"]
55 #[method(name = "Mask", args = 1)]
56 pub fn mask(self, f: T0) -> i32;
57
58 #[doc = "`Test(T0)` overload"]
59 #[method(name = "Test", args = 1)]
60 pub fn test(self, f: T0) -> bool;
61
62 #[doc = "`Not(T0)` overload"]
63 #[method(name = "Not", args = 1)]
64 pub fn not(self, f: T0) -> bool;
65
66 #[doc = "`Reset(T0)` overload"]
67 #[method(name = "Reset", args = 1)]
68 pub fn reset(self, f: T0) -> ();
69
70 #[doc = "`SetOrClear(bool, T0)` overload"]
71 #[method(name = "SetOrClear", args = 2)]
72 pub fn set_or_clear(self, is_set: bool, f: T0) -> ();
73
74 #[doc = "`Exclusive(T0, T0)` overload"]
75 #[method(name = "Exclusive", args = 2)]
76 pub fn exclusive(self, n: T0, m: T0) -> bool;
77
78 #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
79 #[method(name = "Serialize", args = 1)]
80 pub fn serialize(self, stream: crate::app::stream_2::Stream_2) -> ();
81
82 #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
83 #[method(name = "Deserialize", args = 1)]
84 pub fn deserialize(self, stream: crate::app::stream_2::Stream_2) -> ();
85}
86
87#[cfg(feature = "app-bitfieldtemplate32_1")]
88impl<T0: ::unity::ClassIdentity> BitFieldTemplate32_1<T0> {
89 #[doc = "`.ctor()` — no args"]
90 pub fn new() -> Self {
91 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
92 panic!(
93 "{}
94::{}
95 failed to instantiate",
96 ::core::stringify!(BitFieldTemplate32_1),
97 ::core::stringify!(new),
98 )
99 });
100 <Self as IBitFieldTemplate32_1Methods<T0>>::ctor(this);
101 this
102 }
103}
104
105#[cfg(feature = "app-bitfieldtemplate32_1")]
106#[doc(hidden)]
107pub mod prelude {
108 pub use super::{BitFieldTemplate32_1, IBitFieldTemplate32_1, IBitFieldTemplate32_1Methods};
109 #[cfg(feature = "app-bitfield32")]
110 pub use crate::app::bitfield32::IBitField32Methods;
111 #[cfg(feature = "app-bitfieldcommon")]
112 pub use crate::app::bitfieldcommon::IBitFieldCommonMethods;
113 #[cfg(feature = "system-object")]
114 pub use crate::system::object::IObjectMethods;
115 pub use crate::{
116 app::{bitfield32::IBitField32, bitfieldcommon::IBitFieldCommon},
117 system::object::IObject,
118 };
119}