engage/generated/system/io/
searchresulthandler_1.rs1#[cfg(feature = "system-io-searchresulthandler_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/io/searchresulthandler_1/SearchResultHandler_1.md"))]
11 #[::unity::class(namespace = "System.IO", name = "SearchResultHandler`1")]
12 #[parent(crate::system::object::Object)]
13 pub struct SearchResultHandler_1<T0: ::unity::ClassIdentity> {}
14}
15
16#[cfg(feature = "system-io-searchresulthandler_1-types")]
17pub use __types::*;
18
19#[cfg(feature = "system-io-searchresulthandler_1")]
20#[::unity::methods]
21impl<T0: ::unity::ClassIdentity> SearchResultHandler_1<T0> {
22 #[doc = "`IsResultIncluded(crate::system::io::searchresult::SearchResult)` overload"]
23 #[method(name = "IsResultIncluded", args = 1, abstract_dispatch)]
24 pub fn is_result_included(self, result: crate::system::io::searchresult::SearchResult) -> bool;
25
26 #[doc = "`CreateObject(crate::system::io::searchresult::SearchResult)` overload"]
27 #[method(name = "CreateObject", args = 1, abstract_dispatch)]
28 pub fn create_object(self, result: crate::system::io::searchresult::SearchResult) -> T0;
29
30 #[doc = "`.ctor()` overload"]
31 #[method(name = ".ctor", args = 0)]
32 pub fn ctor(self) -> ();
33}
34
35#[cfg(feature = "system-io-searchresulthandler_1")]
36impl<T0: ::unity::ClassIdentity> SearchResultHandler_1<T0> {
37 #[doc = "`.ctor()` — no args"]
38 pub fn new() -> Self {
39 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
40 panic!(
41 "{}
42::{}
43 failed to instantiate",
44 ::core::stringify!(SearchResultHandler_1),
45 ::core::stringify!(new),
46 )
47 });
48 <Self as ISearchResultHandler_1Methods<T0>>::ctor(this);
49 this
50 }
51}
52
53#[cfg(feature = "system-io-searchresulthandler_1")]
54#[doc(hidden)]
55pub mod prelude {
56 pub use super::{ISearchResultHandler_1, ISearchResultHandler_1Methods, SearchResultHandler_1};
57 pub use crate::system::object::IObject;
58 #[cfg(feature = "system-object")]
59 pub use crate::system::object::IObjectMethods;
60}