Skip to main content

engage/generated/system/io/
pathtoolongexception.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-io-pathtoolongexception-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        io::ioexception::{IIOException, IOException},
10        object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/pathtoolongexception/PathTooLongException.md"))]
14    #[::unity::class(namespace = "System.IO", name = "PathTooLongException")]
15    #[parent(crate::system::io::ioexception::IOException)]
16    pub struct PathTooLongException {}
17}
18
19#[cfg(feature = "system-io-pathtoolongexception-types")]
20pub use __types::*;
21
22#[cfg(feature = "system-io-pathtoolongexception")]
23pub trait IPathTooLongExceptionMethods: IPathTooLongException {
24    #[doc = "`.ctor()` overload"]
25    fn ctor(self) -> () {
26        unsafe {
27            let __receiver = <PathTooLongException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28            ::unity::il2cpp_call!((::unity::module_base()+0x376a0f0usize)as*mut u8,();
29(PathTooLongException)__receiver)
30        }
31    }
32    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
33    fn ctor_2(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
34        unsafe {
35            let __receiver = <PathTooLongException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36            ::unity::il2cpp_call!((::unity::module_base()+0x376a170usize)as*mut u8,();
37(PathTooLongException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message))
38        }
39    }
40}
41
42#[cfg(feature = "system-io-pathtoolongexception")]
43impl<__T: IPathTooLongException> IPathTooLongExceptionMethods for __T {}
44
45#[cfg(feature = "system-io-pathtoolongexception")]
46impl PathTooLongException {
47    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
48        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
49    }
50
51    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
52        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
53    }
54}
55
56#[cfg(feature = "system-io-pathtoolongexception")]
57impl PathTooLongException {
58    #[doc = "`.ctor()` — no args"]
59    pub fn new() -> Self {
60        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
61            panic!(
62                "{}
63::{}
64 failed to instantiate",
65                ::core::stringify!(PathTooLongException),
66                ::core::stringify!(new),
67            )
68        });
69        <Self as IPathTooLongExceptionMethods>::ctor(this);
70        this
71    }
72
73    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
74    pub fn new_2(message: ::unity::Il2CppString) -> Self {
75        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
76            panic!(
77                "{}
78::{}
79 failed to instantiate",
80                ::core::stringify!(PathTooLongException),
81                ::core::stringify!(new_2),
82            )
83        });
84        <Self as IPathTooLongExceptionMethods>::ctor_2(this, message);
85        this
86    }
87}
88
89#[cfg(feature = "system-io-pathtoolongexception")]
90#[doc(hidden)]
91pub mod prelude {
92    pub use super::{IPathTooLongException, IPathTooLongExceptionMethods, PathTooLongException};
93    #[cfg(feature = "system-io-ioexception")]
94    pub use crate::system::io::ioexception::IIOExceptionMethods;
95    #[cfg(feature = "system-object")]
96    pub use crate::system::object::IObjectMethods;
97    pub use crate::system::{
98        io::ioexception::{IIOException, IOException},
99        object::IObject,
100    };
101}