blob: 7e06f01ef3677de570ad78349d870734af0f7c7a [file] [log] [blame]
Michael Forster028800b2021-10-05 12:39:59 +00001// Part of the Crubit project, under the Apache License v2.0 with LLVM
2// Exceptions. See /LICENSE for license information.
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
Lukasz Anforowicz19e057d2022-10-28 12:03:23 -07005// Automatically @generated Rust bindings for the following C++ target:
Lukasz Anforowicz5b3f5302022-02-07 01:04:47 +00006// //rs_bindings_from_cc/test/golden:doc_comment_cc
Dmitri Gribenkob11faa42024-07-25 03:08:44 -07007// Features: experimental, non_extern_c_functions, supported
Lukasz Anforowicz19e057d2022-10-28 12:03:23 -07008
Devin Jeanpierre43356432023-01-13 12:39:02 -08009#![rustfmt::skip]
Devin Jeanpierre46427d52023-12-08 06:50:27 -080010#![feature(custom_inner_attributes, negative_impls, register_tool)]
Devin Jeanpierre43356432023-01-13 12:39:02 -080011#![allow(stable_features)]
Googler61afe912023-03-03 13:59:15 -080012#![no_std]
Devin Jeanpierre162d21f2023-11-21 15:14:00 -080013#![register_tool(__crubit)]
Lukasz Anforowicz4bb78a72023-03-06 14:10:37 -080014#![allow(improper_ctypes)]
Devin Jeanpierre989df112024-01-30 02:06:11 -080015#![allow(nonstandard_style)]
Dmitri Gribenkof45b4652024-08-02 09:16:23 -070016#![allow(dead_code)]
Lukasz Anforowiczcc262632022-05-12 15:07:43 -070017#![deny(warnings)]
Michael Forsterdb8101a2021-10-08 06:56:03 +000018
Michael Forster028800b2021-10-05 12:39:59 +000019/// Doc comment
20///
21/// * with three slashes
Devin Jeanpierre2ed14ec2021-10-06 11:32:19 +000022#[derive(Clone, Copy)]
Michael Forster028800b2021-10-05 12:39:59 +000023#[repr(C)]
Yongheng Chend5a67842024-07-19 13:57:35 -070024#[__crubit::annotate(cpp_type = "DocCommentSlashes")]
Michael Forster028800b2021-10-05 12:39:59 +000025pub struct DocCommentSlashes {
Googlerbed0a2a2023-03-01 11:53:43 -080026 __non_field_data: [::core::mem::MaybeUninit<u8>; 0],
Lukasz Anforowicz73326af2022-01-05 01:13:10 +000027 /// A field.
Lukasz Anforowicz460e4272023-05-18 16:11:46 -070028 pub i: ::core::ffi::c_int,
Michael Forster028800b2021-10-05 12:39:59 +000029}
Devin Jeanpierre46427d52023-12-08 06:50:27 -080030impl !Send for DocCommentSlashes {}
31impl !Sync for DocCommentSlashes {}
Rosica Dejanovska8283fe62022-05-09 10:04:28 -070032forward_declare::unsafe_define!(
33 forward_declare::symbol!("DocCommentSlashes"),
34 crate::DocCommentSlashes
35);
Michael Forsterdb8101a2021-10-08 06:56:03 +000036
Felipe de A. Mello Pereira6f3cf162023-01-16 00:48:25 -080037impl<'b> From<::ctor::RvalueReference<'b, Self>> for DocCommentSlashes {
Devin Jeanpierredeea7892022-03-29 02:13:31 -070038 #[inline(always)]
Felipe de A. Mello Pereira6f3cf162023-01-16 00:48:25 -080039 fn from(__param_0: ::ctor::RvalueReference<'b, Self>) -> Self {
Googlerbed0a2a2023-03-01 11:53:43 -080040 let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed();
Devin Jeanpierredeea7892022-03-29 02:13:31 -070041 unsafe {
Rosica Dejanovska68c11ac2022-05-12 03:48:59 -070042 crate::detail::__rust_thunk___ZN17DocCommentSlashesC1EOS_(&mut tmp, __param_0);
Devin Jeanpierredeea7892022-03-29 02:13:31 -070043 tmp.assume_init()
44 }
45 }
46}
Michael Forster365bba12022-01-24 16:56:06 +000047
Googler7341f5e2023-01-31 14:37:12 -080048impl<'b> ::ctor::UnpinAssign<&'b Self> for DocCommentSlashes {
49 #[inline(always)]
50 fn unpin_assign<'a>(&'a mut self, __param_0: &'b Self) {
51 unsafe {
52 crate::detail::__rust_thunk___ZN17DocCommentSlashesaSERKS_(self, __param_0);
53 }
54 }
55}
Lukasz Anforowiczeb19ac62022-02-05 00:10:16 +000056
Googler7341f5e2023-01-31 14:37:12 -080057impl<'b> ::ctor::UnpinAssign<::ctor::RvalueReference<'b, Self>> for DocCommentSlashes {
58 #[inline(always)]
59 fn unpin_assign<'a>(&'a mut self, __param_0: ::ctor::RvalueReference<'b, Self>) {
60 unsafe {
61 crate::detail::__rust_thunk___ZN17DocCommentSlashesaSEOS_(self, __param_0);
62 }
63 }
64}
Michael Forster365bba12022-01-24 16:56:06 +000065
Lukasz Anforowicz73326af2022-01-05 01:13:10 +000066/// The default constructor which will get translated into
67/// `impl Default for DocCommentSlashes`.
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +000068impl Default for DocCommentSlashes {
69 #[inline(always)]
70 fn default() -> Self {
Googlerbed0a2a2023-03-01 11:53:43 -080071 let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed();
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +000072 unsafe {
Rosica Dejanovska68c11ac2022-05-12 03:48:59 -070073 crate::detail::__rust_thunk___ZN17DocCommentSlashesC1Ev(&mut tmp);
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +000074 tmp.assume_init()
75 }
76 }
77}
78
Lukasz Anforowicz71716b72022-01-26 17:05:05 +000079/// An implicit conversion constructor which will get translated into `impl
80/// From<int> for DocCommentSlashes`.
Lukasz Anforowicz460e4272023-05-18 16:11:46 -070081impl From<::core::ffi::c_int> for DocCommentSlashes {
Lukasz Anforowicz73326af2022-01-05 01:13:10 +000082 #[inline(always)]
Lukasz Anforowicz460e4272023-05-18 16:11:46 -070083 fn from(__param_0: ::core::ffi::c_int) -> Self {
Googlerbed0a2a2023-03-01 11:53:43 -080084 let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed();
Lukasz Anforowicz73326af2022-01-05 01:13:10 +000085 unsafe {
Rosica Dejanovska68c11ac2022-05-12 03:48:59 -070086 crate::detail::__rust_thunk___ZN17DocCommentSlashesC1Ei(&mut tmp, __param_0);
Lukasz Anforowicz73326af2022-01-05 01:13:10 +000087 tmp.assume_init()
88 }
89 }
90}
91
Lukasz Anforowicz2649d252021-12-17 08:59:47 +000092impl DocCommentSlashes {
Lukasz Anforowicz231a3bb2022-01-12 14:05:59 +000093 /// A non-static member function (`const` flavor).
94 #[inline(always)]
Lukasz Anforowicz460e4272023-05-18 16:11:46 -070095 pub fn get_field_value<'a>(&'a self) -> ::core::ffi::c_int {
Rosica Dejanovska68c11ac2022-05-12 03:48:59 -070096 unsafe { crate::detail::__rust_thunk___ZNK17DocCommentSlashes15get_field_valueEv(self) }
Lukasz Anforowicz231a3bb2022-01-12 14:05:59 +000097 }
98}
99
100impl DocCommentSlashes {
101 /// A non-static member function (non-`const` flavor).
102 #[inline(always)]
Lukasz Anforowicz460e4272023-05-18 16:11:46 -0700103 pub fn set_field_value<'a>(&'a mut self, new_value: ::core::ffi::c_int) {
Rosica Dejanovska68c11ac2022-05-12 03:48:59 -0700104 unsafe {
105 crate::detail::__rust_thunk___ZN17DocCommentSlashes15set_field_valueEi(self, new_value)
106 }
Lukasz Anforowicz231a3bb2022-01-12 14:05:59 +0000107 }
108}
109
110impl DocCommentSlashes {
Lukasz Anforowicz73326af2022-01-05 01:13:10 +0000111 /// A static method.
Lukasz Anforowicz2649d252021-12-17 08:59:47 +0000112 #[inline(always)]
Lukasz Anforowicz460e4272023-05-18 16:11:46 -0700113 pub fn static_method() -> ::core::ffi::c_int {
Rosica Dejanovska68c11ac2022-05-12 03:48:59 -0700114 unsafe { crate::detail::__rust_thunk___ZN17DocCommentSlashes13static_methodEv() }
Lukasz Anforowicz2649d252021-12-17 08:59:47 +0000115 }
116}
117
Michael Forster028800b2021-10-05 12:39:59 +0000118/// Doc comment
119///
120/// * with slashes and bang
Devin Jeanpierre2ed14ec2021-10-06 11:32:19 +0000121#[derive(Clone, Copy)]
Michael Forster028800b2021-10-05 12:39:59 +0000122#[repr(C)]
Yongheng Chend5a67842024-07-19 13:57:35 -0700123#[__crubit::annotate(cpp_type = "DocCommentBang")]
Michael Forster028800b2021-10-05 12:39:59 +0000124pub struct DocCommentBang {
Michael Forstercc5941a2021-10-07 07:12:24 +0000125 /// A field
Lukasz Anforowicz460e4272023-05-18 16:11:46 -0700126 pub i: ::core::ffi::c_int,
Michael Forster028800b2021-10-05 12:39:59 +0000127}
Devin Jeanpierre46427d52023-12-08 06:50:27 -0800128impl !Send for DocCommentBang {}
129impl !Sync for DocCommentBang {}
Rosica Dejanovska8283fe62022-05-09 10:04:28 -0700130forward_declare::unsafe_define!(forward_declare::symbol!("DocCommentBang"), crate::DocCommentBang);
Michael Forsterdb8101a2021-10-08 06:56:03 +0000131
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +0000132impl Default for DocCommentBang {
Lukasz Anforowicz2649d252021-12-17 08:59:47 +0000133 #[inline(always)]
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +0000134 fn default() -> Self {
Googlerbed0a2a2023-03-01 11:53:43 -0800135 let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed();
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +0000136 unsafe {
Rosica Dejanovska68c11ac2022-05-12 03:48:59 -0700137 crate::detail::__rust_thunk___ZN14DocCommentBangC1Ev(&mut tmp);
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +0000138 tmp.assume_init()
139 }
Lukasz Anforowicz2649d252021-12-17 08:59:47 +0000140 }
141}
142
Felipe de A. Mello Pereira6f3cf162023-01-16 00:48:25 -0800143impl<'b> From<::ctor::RvalueReference<'b, Self>> for DocCommentBang {
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700144 #[inline(always)]
Felipe de A. Mello Pereira6f3cf162023-01-16 00:48:25 -0800145 fn from(__param_0: ::ctor::RvalueReference<'b, Self>) -> Self {
Googlerbed0a2a2023-03-01 11:53:43 -0800146 let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed();
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700147 unsafe {
Rosica Dejanovska68c11ac2022-05-12 03:48:59 -0700148 crate::detail::__rust_thunk___ZN14DocCommentBangC1EOS_(&mut tmp, __param_0);
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700149 tmp.assume_init()
150 }
151 }
152}
Devin Jeanpierre296c6072021-10-27 10:53:05 +0000153
Googler7341f5e2023-01-31 14:37:12 -0800154impl<'b> ::ctor::UnpinAssign<&'b Self> for DocCommentBang {
155 #[inline(always)]
156 fn unpin_assign<'a>(&'a mut self, __param_0: &'b Self) {
157 unsafe {
158 crate::detail::__rust_thunk___ZN14DocCommentBangaSERKS_(self, __param_0);
159 }
160 }
161}
Lukasz Anforowiczeb19ac62022-02-05 00:10:16 +0000162
Googler7341f5e2023-01-31 14:37:12 -0800163impl<'b> ::ctor::UnpinAssign<::ctor::RvalueReference<'b, Self>> for DocCommentBang {
164 #[inline(always)]
165 fn unpin_assign<'a>(&'a mut self, __param_0: ::ctor::RvalueReference<'b, Self>) {
166 unsafe {
167 crate::detail::__rust_thunk___ZN14DocCommentBangaSEOS_(self, __param_0);
168 }
169 }
170}
Devin Jeanpierre296c6072021-10-27 10:53:05 +0000171
Michael Forster028800b2021-10-05 12:39:59 +0000172/// Multiline comment
173///
174/// with two stars
Devin Jeanpierre2ed14ec2021-10-06 11:32:19 +0000175#[derive(Clone, Copy)]
Michael Forster028800b2021-10-05 12:39:59 +0000176#[repr(C)]
Yongheng Chend5a67842024-07-19 13:57:35 -0700177#[__crubit::annotate(cpp_type = "MultilineCommentTwoStars")]
Michael Forster028800b2021-10-05 12:39:59 +0000178pub struct MultilineCommentTwoStars {
Michael Forstercc5941a2021-10-07 07:12:24 +0000179 /// A field
Lukasz Anforowicz460e4272023-05-18 16:11:46 -0700180 pub i: ::core::ffi::c_int,
Michael Forster028800b2021-10-05 12:39:59 +0000181}
Devin Jeanpierre46427d52023-12-08 06:50:27 -0800182impl !Send for MultilineCommentTwoStars {}
183impl !Sync for MultilineCommentTwoStars {}
Devin Jeanpierre27450132022-04-11 13:52:01 -0700184forward_declare::unsafe_define!(
185 forward_declare::symbol!("MultilineCommentTwoStars"),
Rosica Dejanovska8283fe62022-05-09 10:04:28 -0700186 crate::MultilineCommentTwoStars
Devin Jeanpierre27450132022-04-11 13:52:01 -0700187);
Michael Forsterdb8101a2021-10-08 06:56:03 +0000188
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +0000189impl Default for MultilineCommentTwoStars {
Lukasz Anforowicz2649d252021-12-17 08:59:47 +0000190 #[inline(always)]
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +0000191 fn default() -> Self {
Googlerbed0a2a2023-03-01 11:53:43 -0800192 let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed();
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +0000193 unsafe {
Rosica Dejanovska68c11ac2022-05-12 03:48:59 -0700194 crate::detail::__rust_thunk___ZN24MultilineCommentTwoStarsC1Ev(&mut tmp);
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +0000195 tmp.assume_init()
196 }
Lukasz Anforowicz2649d252021-12-17 08:59:47 +0000197 }
198}
199
Felipe de A. Mello Pereira6f3cf162023-01-16 00:48:25 -0800200impl<'b> From<::ctor::RvalueReference<'b, Self>> for MultilineCommentTwoStars {
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700201 #[inline(always)]
Felipe de A. Mello Pereira6f3cf162023-01-16 00:48:25 -0800202 fn from(__param_0: ::ctor::RvalueReference<'b, Self>) -> Self {
Googlerbed0a2a2023-03-01 11:53:43 -0800203 let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed();
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700204 unsafe {
Rosica Dejanovska68c11ac2022-05-12 03:48:59 -0700205 crate::detail::__rust_thunk___ZN24MultilineCommentTwoStarsC1EOS_(&mut tmp, __param_0);
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700206 tmp.assume_init()
207 }
208 }
209}
Devin Jeanpierre296c6072021-10-27 10:53:05 +0000210
Googler7341f5e2023-01-31 14:37:12 -0800211impl<'b> ::ctor::UnpinAssign<&'b Self> for MultilineCommentTwoStars {
212 #[inline(always)]
213 fn unpin_assign<'a>(&'a mut self, __param_0: &'b Self) {
214 unsafe {
215 crate::detail::__rust_thunk___ZN24MultilineCommentTwoStarsaSERKS_(self, __param_0);
216 }
217 }
218}
Lukasz Anforowiczeb19ac62022-02-05 00:10:16 +0000219
Googler7341f5e2023-01-31 14:37:12 -0800220impl<'b> ::ctor::UnpinAssign<::ctor::RvalueReference<'b, Self>> for MultilineCommentTwoStars {
221 #[inline(always)]
222 fn unpin_assign<'a>(&'a mut self, __param_0: ::ctor::RvalueReference<'b, Self>) {
223 unsafe {
224 crate::detail::__rust_thunk___ZN24MultilineCommentTwoStarsaSEOS_(self, __param_0);
225 }
226 }
227}
Devin Jeanpierre296c6072021-10-27 10:53:05 +0000228
Michael Forster028800b2021-10-05 12:39:59 +0000229/// Line comment
230///
231/// * with two slashes
Devin Jeanpierre2ed14ec2021-10-06 11:32:19 +0000232#[derive(Clone, Copy)]
Michael Forster028800b2021-10-05 12:39:59 +0000233#[repr(C)]
Yongheng Chend5a67842024-07-19 13:57:35 -0700234#[__crubit::annotate(cpp_type = "LineComment")]
Michael Forster028800b2021-10-05 12:39:59 +0000235pub struct LineComment {
Michael Forstercc5941a2021-10-07 07:12:24 +0000236 /// A field
Lukasz Anforowicz460e4272023-05-18 16:11:46 -0700237 pub i: ::core::ffi::c_int,
Michael Forster028800b2021-10-05 12:39:59 +0000238}
Devin Jeanpierre46427d52023-12-08 06:50:27 -0800239impl !Send for LineComment {}
240impl !Sync for LineComment {}
Rosica Dejanovska8283fe62022-05-09 10:04:28 -0700241forward_declare::unsafe_define!(forward_declare::symbol!("LineComment"), crate::LineComment);
Michael Forsterdb8101a2021-10-08 06:56:03 +0000242
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +0000243impl Default for LineComment {
Lukasz Anforowicz2649d252021-12-17 08:59:47 +0000244 #[inline(always)]
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +0000245 fn default() -> Self {
Googlerbed0a2a2023-03-01 11:53:43 -0800246 let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed();
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +0000247 unsafe {
Rosica Dejanovska68c11ac2022-05-12 03:48:59 -0700248 crate::detail::__rust_thunk___ZN11LineCommentC1Ev(&mut tmp);
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +0000249 tmp.assume_init()
250 }
Lukasz Anforowicz2649d252021-12-17 08:59:47 +0000251 }
252}
253
Felipe de A. Mello Pereira6f3cf162023-01-16 00:48:25 -0800254impl<'b> From<::ctor::RvalueReference<'b, Self>> for LineComment {
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700255 #[inline(always)]
Felipe de A. Mello Pereira6f3cf162023-01-16 00:48:25 -0800256 fn from(__param_0: ::ctor::RvalueReference<'b, Self>) -> Self {
Googlerbed0a2a2023-03-01 11:53:43 -0800257 let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed();
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700258 unsafe {
Rosica Dejanovska68c11ac2022-05-12 03:48:59 -0700259 crate::detail::__rust_thunk___ZN11LineCommentC1EOS_(&mut tmp, __param_0);
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700260 tmp.assume_init()
261 }
262 }
263}
Devin Jeanpierre296c6072021-10-27 10:53:05 +0000264
Googler7341f5e2023-01-31 14:37:12 -0800265impl<'b> ::ctor::UnpinAssign<&'b Self> for LineComment {
266 #[inline(always)]
267 fn unpin_assign<'a>(&'a mut self, __param_0: &'b Self) {
268 unsafe {
269 crate::detail::__rust_thunk___ZN11LineCommentaSERKS_(self, __param_0);
270 }
271 }
272}
Lukasz Anforowiczeb19ac62022-02-05 00:10:16 +0000273
Googler7341f5e2023-01-31 14:37:12 -0800274impl<'b> ::ctor::UnpinAssign<::ctor::RvalueReference<'b, Self>> for LineComment {
275 #[inline(always)]
276 fn unpin_assign<'a>(&'a mut self, __param_0: ::ctor::RvalueReference<'b, Self>) {
277 unsafe {
278 crate::detail::__rust_thunk___ZN11LineCommentaSEOS_(self, __param_0);
279 }
280 }
281}
Devin Jeanpierre296c6072021-10-27 10:53:05 +0000282
Michael Forster028800b2021-10-05 12:39:59 +0000283/// Multiline comment
284///
285/// with one star
Devin Jeanpierre2ed14ec2021-10-06 11:32:19 +0000286#[derive(Clone, Copy)]
Michael Forster028800b2021-10-05 12:39:59 +0000287#[repr(C)]
Yongheng Chend5a67842024-07-19 13:57:35 -0700288#[__crubit::annotate(cpp_type = "MultilineOneStar")]
Michael Forster028800b2021-10-05 12:39:59 +0000289pub struct MultilineOneStar {
Michael Forstercc5941a2021-10-07 07:12:24 +0000290 /// A field
Lukasz Anforowicz460e4272023-05-18 16:11:46 -0700291 pub i: ::core::ffi::c_int,
Michael Forster028800b2021-10-05 12:39:59 +0000292}
Devin Jeanpierre46427d52023-12-08 06:50:27 -0800293impl !Send for MultilineOneStar {}
294impl !Sync for MultilineOneStar {}
Rosica Dejanovska8283fe62022-05-09 10:04:28 -0700295forward_declare::unsafe_define!(
296 forward_declare::symbol!("MultilineOneStar"),
297 crate::MultilineOneStar
298);
Michael Forsterdb8101a2021-10-08 06:56:03 +0000299
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +0000300impl Default for MultilineOneStar {
Lukasz Anforowicz2649d252021-12-17 08:59:47 +0000301 #[inline(always)]
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +0000302 fn default() -> Self {
Googlerbed0a2a2023-03-01 11:53:43 -0800303 let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed();
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +0000304 unsafe {
Rosica Dejanovska68c11ac2022-05-12 03:48:59 -0700305 crate::detail::__rust_thunk___ZN16MultilineOneStarC1Ev(&mut tmp);
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +0000306 tmp.assume_init()
307 }
Lukasz Anforowicz2649d252021-12-17 08:59:47 +0000308 }
309}
310
Felipe de A. Mello Pereira6f3cf162023-01-16 00:48:25 -0800311impl<'b> From<::ctor::RvalueReference<'b, Self>> for MultilineOneStar {
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700312 #[inline(always)]
Felipe de A. Mello Pereira6f3cf162023-01-16 00:48:25 -0800313 fn from(__param_0: ::ctor::RvalueReference<'b, Self>) -> Self {
Googlerbed0a2a2023-03-01 11:53:43 -0800314 let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed();
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700315 unsafe {
Rosica Dejanovska68c11ac2022-05-12 03:48:59 -0700316 crate::detail::__rust_thunk___ZN16MultilineOneStarC1EOS_(&mut tmp, __param_0);
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700317 tmp.assume_init()
318 }
319 }
320}
Devin Jeanpierre296c6072021-10-27 10:53:05 +0000321
Googler7341f5e2023-01-31 14:37:12 -0800322impl<'b> ::ctor::UnpinAssign<&'b Self> for MultilineOneStar {
323 #[inline(always)]
324 fn unpin_assign<'a>(&'a mut self, __param_0: &'b Self) {
325 unsafe {
326 crate::detail::__rust_thunk___ZN16MultilineOneStaraSERKS_(self, __param_0);
327 }
328 }
329}
Lukasz Anforowiczeb19ac62022-02-05 00:10:16 +0000330
Googler7341f5e2023-01-31 14:37:12 -0800331impl<'b> ::ctor::UnpinAssign<::ctor::RvalueReference<'b, Self>> for MultilineOneStar {
332 #[inline(always)]
333 fn unpin_assign<'a>(&'a mut self, __param_0: ::ctor::RvalueReference<'b, Self>) {
334 unsafe {
335 crate::detail::__rust_thunk___ZN16MultilineOneStaraSEOS_(self, __param_0);
336 }
337 }
338}
Devin Jeanpierre296c6072021-10-27 10:53:05 +0000339
Michael Forster409d9412021-10-07 08:35:29 +0000340/// A function
341#[inline(always)]
Lukasz Anforowicz460e4272023-05-18 16:11:46 -0700342pub fn foo() -> ::core::ffi::c_int {
Rosica Dejanovska68c11ac2022-05-12 03:48:59 -0700343 unsafe { crate::detail::__rust_thunk___Z3foov() }
Michael Forster409d9412021-10-07 08:35:29 +0000344}
Michael Forsterdb8101a2021-10-08 06:56:03 +0000345
Lukasz Anforowiczc503af42022-03-04 23:18:15 +0000346/// A type alias
Rosica Dejanovska8283fe62022-05-09 10:04:28 -0700347pub type MyTypeAlias = crate::DocCommentSlashes;
Lukasz Anforowiczc503af42022-03-04 23:18:15 +0000348
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700349// Error while generating bindings for item 'MyTemplate':
350// Class templates are not supported yet
351
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700352// Class template specialization.
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700353
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700354// A non-static member function in a specialization.
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700355
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700356// Data member in a specialization.
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700357
358/// Type alias to template instantiation.
359pub type MyInstantiation = crate::__CcTemplateInst10MyTemplateIiE;
360
361/// Type alias to instantiation of a template specialization.
362pub type MySpecializedInstantiation = crate::__CcTemplateInst10MyTemplateIfE;
363
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700364// Error while generating bindings for item 'OuterTemplate':
365// Class templates are not supported yet
366
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700367// Error while generating bindings for item 'ConcreteNestedStruct':
Devin Jeanpierree971ed72022-08-09 05:07:04 -0700368// Unsupported type 'struct OuterTemplate<int>::NestedStruct': No generated bindings found for 'NestedStruct'
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700369
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700370/// Class template.
371#[derive(Clone, Copy)]
372#[repr(C)]
Yongheng Chend5a67842024-07-19 13:57:35 -0700373#[__crubit::annotate(cpp_type = "MyTemplate < int >")]
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700374pub struct __CcTemplateInst10MyTemplateIiE {
375 /// Data member.
Lukasz Anforowicz460e4272023-05-18 16:11:46 -0700376 pub value: ::core::ffi::c_int,
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700377}
Devin Jeanpierre46427d52023-12-08 06:50:27 -0800378impl !Send for __CcTemplateInst10MyTemplateIiE {}
379impl !Sync for __CcTemplateInst10MyTemplateIiE {}
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700380forward_declare::unsafe_define!(
Devin Jeanpierre241915d2023-09-27 13:47:23 -0700381 forward_declare::symbol!("MyTemplate < int >"),
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700382 crate::__CcTemplateInst10MyTemplateIiE
383);
384
385impl Default for __CcTemplateInst10MyTemplateIiE {
386 #[inline(always)]
387 fn default() -> Self {
Googlerbed0a2a2023-03-01 11:53:43 -0800388 let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed();
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700389 unsafe {
Lukasz Anforowicz8d1e4322022-06-08 07:56:06 -0700390 crate::detail::__rust_thunk___ZN10MyTemplateIiEC1Ev__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(&mut tmp);
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700391 tmp.assume_init()
392 }
393 }
394}
395
Felipe de A. Mello Pereira6f3cf162023-01-16 00:48:25 -0800396impl<'b> From<::ctor::RvalueReference<'b, Self>> for __CcTemplateInst10MyTemplateIiE {
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700397 #[inline(always)]
Felipe de A. Mello Pereira6f3cf162023-01-16 00:48:25 -0800398 fn from(__param_0: ::ctor::RvalueReference<'b, Self>) -> Self {
Googlerbed0a2a2023-03-01 11:53:43 -0800399 let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed();
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700400 unsafe {
Lukasz Anforowicz8d1e4322022-06-08 07:56:06 -0700401 crate::detail::__rust_thunk___ZN10MyTemplateIiEC1EOS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(&mut tmp,__param_0);
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700402 tmp.assume_init()
403 }
404 }
405}
406
Googler7341f5e2023-01-31 14:37:12 -0800407impl<'b> ::ctor::UnpinAssign<&'b Self> for __CcTemplateInst10MyTemplateIiE {
408 #[inline(always)]
409 fn unpin_assign<'a>(&'a mut self, __param_0: &'b Self) {
410 unsafe {
411 crate::detail::__rust_thunk___ZN10MyTemplateIiEaSERKS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(self,__param_0);
412 }
413 }
414}
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700415
Googler7341f5e2023-01-31 14:37:12 -0800416impl<'b> ::ctor::UnpinAssign<::ctor::RvalueReference<'b, Self>>
417 for __CcTemplateInst10MyTemplateIiE
418{
419 #[inline(always)]
420 fn unpin_assign<'a>(&'a mut self, __param_0: ::ctor::RvalueReference<'b, Self>) {
421 unsafe {
422 crate::detail::__rust_thunk___ZN10MyTemplateIiEaSEOS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(self,__param_0);
423 }
424 }
425}
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700426
427// A non-static member function.
428
429impl __CcTemplateInst10MyTemplateIiE {
430 /// A non-static member function.
431 #[inline(always)]
Lukasz Anforowicz460e4272023-05-18 16:11:46 -0700432 pub fn get_field_value<'a>(&'a self) -> &'a ::core::ffi::c_int {
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700433 unsafe {
Lukasz Anforowicz8d1e4322022-06-08 07:56:06 -0700434 crate::detail::__rust_thunk___ZNK10MyTemplateIiE15get_field_valueEv__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(self)
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700435 }
436 }
437}
438
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700439/// Class template specialization.
440#[derive(Clone, Copy)]
441#[repr(C)]
Yongheng Chend5a67842024-07-19 13:57:35 -0700442#[__crubit::annotate(cpp_type = "MyTemplate < float >")]
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700443pub struct __CcTemplateInst10MyTemplateIfE {
444 /// Data member in a specialization.
445 pub value: f32,
446}
Devin Jeanpierre46427d52023-12-08 06:50:27 -0800447impl !Send for __CcTemplateInst10MyTemplateIfE {}
448impl !Sync for __CcTemplateInst10MyTemplateIfE {}
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700449forward_declare::unsafe_define!(
Devin Jeanpierre241915d2023-09-27 13:47:23 -0700450 forward_declare::symbol!("MyTemplate < float >"),
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700451 crate::__CcTemplateInst10MyTemplateIfE
452);
453
454impl Default for __CcTemplateInst10MyTemplateIfE {
455 #[inline(always)]
456 fn default() -> Self {
Googlerbed0a2a2023-03-01 11:53:43 -0800457 let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed();
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700458 unsafe {
459 crate::detail::__rust_thunk___ZN10MyTemplateIfEC1Ev__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(&mut tmp);
460 tmp.assume_init()
461 }
462 }
463}
464
Felipe de A. Mello Pereira6f3cf162023-01-16 00:48:25 -0800465impl<'b> From<::ctor::RvalueReference<'b, Self>> for __CcTemplateInst10MyTemplateIfE {
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700466 #[inline(always)]
Felipe de A. Mello Pereira6f3cf162023-01-16 00:48:25 -0800467 fn from(__param_0: ::ctor::RvalueReference<'b, Self>) -> Self {
Googlerbed0a2a2023-03-01 11:53:43 -0800468 let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed();
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700469 unsafe {
470 crate::detail::__rust_thunk___ZN10MyTemplateIfEC1EOS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(&mut tmp,__param_0);
471 tmp.assume_init()
472 }
473 }
474}
475
Googler7341f5e2023-01-31 14:37:12 -0800476impl<'b> ::ctor::UnpinAssign<&'b Self> for __CcTemplateInst10MyTemplateIfE {
477 #[inline(always)]
478 fn unpin_assign<'a>(&'a mut self, __param_0: &'b Self) {
479 unsafe {
480 crate::detail::__rust_thunk___ZN10MyTemplateIfEaSERKS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(self,__param_0);
481 }
482 }
483}
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700484
Googler7341f5e2023-01-31 14:37:12 -0800485impl<'b> ::ctor::UnpinAssign<::ctor::RvalueReference<'b, Self>>
486 for __CcTemplateInst10MyTemplateIfE
487{
488 #[inline(always)]
489 fn unpin_assign<'a>(&'a mut self, __param_0: ::ctor::RvalueReference<'b, Self>) {
490 unsafe {
491 crate::detail::__rust_thunk___ZN10MyTemplateIfEaSEOS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(self,__param_0);
492 }
493 }
494}
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700495
496impl __CcTemplateInst10MyTemplateIfE {
497 /// A non-static member function in a specialization.
498 #[inline(always)]
499 pub fn get_field_value<'a>(&'a self) -> &'a f32 {
500 unsafe {
501 crate::detail::__rust_thunk___ZNK10MyTemplateIfE15get_field_valueEv__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(self)
502 }
503 }
504}
505
Michael Forster409d9412021-10-07 08:35:29 +0000506mod detail {
Googler55647142022-01-11 12:37:39 +0000507 #[allow(unused_imports)]
Devin Jeanpierred4dde0e2021-10-13 20:48:25 +0000508 use super::*;
Michael Forster409d9412021-10-07 08:35:29 +0000509 extern "C" {
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700510 pub(crate) fn __rust_thunk___ZN17DocCommentSlashesC1EOS_<'a, 'b>(
Googlerbed0a2a2023-03-01 11:53:43 -0800511 __this: &'a mut ::core::mem::MaybeUninit<crate::DocCommentSlashes>,
Devin Jeanpierrecd5ebf32022-07-08 05:31:55 -0700512 __param_0: ::ctor::RvalueReference<'b, crate::DocCommentSlashes>,
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700513 );
Googler7341f5e2023-01-31 14:37:12 -0800514 pub(crate) fn __rust_thunk___ZN17DocCommentSlashesaSERKS_<'a, 'b>(
515 __this: &'a mut crate::DocCommentSlashes,
516 __param_0: &'b crate::DocCommentSlashes,
517 ) -> &'a mut crate::DocCommentSlashes;
518 pub(crate) fn __rust_thunk___ZN17DocCommentSlashesaSEOS_<'a, 'b>(
519 __this: &'a mut crate::DocCommentSlashes,
520 __param_0: ::ctor::RvalueReference<'b, crate::DocCommentSlashes>,
521 ) -> &'a mut crate::DocCommentSlashes;
Lukasz Anforowicz13cf7492021-12-22 15:29:52 +0000522 #[link_name = "_ZN17DocCommentSlashesC1Ev"]
Lukasz Anforowicza1c2f5c2022-01-20 00:51:03 +0000523 pub(crate) fn __rust_thunk___ZN17DocCommentSlashesC1Ev<'a>(
Googlerbed0a2a2023-03-01 11:53:43 -0800524 __this: &'a mut ::core::mem::MaybeUninit<crate::DocCommentSlashes>,
Lukasz Anforowicz40c2eb82022-01-11 18:22:31 +0000525 );
Lukasz Anforowicz73326af2022-01-05 01:13:10 +0000526 #[link_name = "_ZN17DocCommentSlashesC1Ei"]
Lukasz Anforowicza1c2f5c2022-01-20 00:51:03 +0000527 pub(crate) fn __rust_thunk___ZN17DocCommentSlashesC1Ei<'a>(
Googlerbed0a2a2023-03-01 11:53:43 -0800528 __this: &'a mut ::core::mem::MaybeUninit<crate::DocCommentSlashes>,
Lukasz Anforowicz460e4272023-05-18 16:11:46 -0700529 __param_0: ::core::ffi::c_int,
Lukasz Anforowicz73326af2022-01-05 01:13:10 +0000530 );
Lukasz Anforowicz231a3bb2022-01-12 14:05:59 +0000531 #[link_name = "_ZNK17DocCommentSlashes15get_field_valueEv"]
Lukasz Anforowicza1c2f5c2022-01-20 00:51:03 +0000532 pub(crate) fn __rust_thunk___ZNK17DocCommentSlashes15get_field_valueEv<'a>(
Rosica Dejanovska8283fe62022-05-09 10:04:28 -0700533 __this: &'a crate::DocCommentSlashes,
Lukasz Anforowicz460e4272023-05-18 16:11:46 -0700534 ) -> ::core::ffi::c_int;
Lukasz Anforowicz231a3bb2022-01-12 14:05:59 +0000535 #[link_name = "_ZN17DocCommentSlashes15set_field_valueEi"]
Lukasz Anforowicza1c2f5c2022-01-20 00:51:03 +0000536 pub(crate) fn __rust_thunk___ZN17DocCommentSlashes15set_field_valueEi<'a>(
Rosica Dejanovska8283fe62022-05-09 10:04:28 -0700537 __this: &'a mut crate::DocCommentSlashes,
Lukasz Anforowicz460e4272023-05-18 16:11:46 -0700538 new_value: ::core::ffi::c_int,
Lukasz Anforowicz231a3bb2022-01-12 14:05:59 +0000539 );
Lukasz Anforowicz2649d252021-12-17 08:59:47 +0000540 #[link_name = "_ZN17DocCommentSlashes13static_methodEv"]
Lukasz Anforowicz460e4272023-05-18 16:11:46 -0700541 pub(crate) fn __rust_thunk___ZN17DocCommentSlashes13static_methodEv() -> ::core::ffi::c_int;
Lukasz Anforowicz63f10da2022-01-26 16:59:36 +0000542 pub(crate) fn __rust_thunk___ZN14DocCommentBangC1Ev<'a>(
Googlerbed0a2a2023-03-01 11:53:43 -0800543 __this: &'a mut ::core::mem::MaybeUninit<crate::DocCommentBang>,
Lukasz Anforowicz4ad012b2021-12-15 18:13:40 +0000544 );
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700545 pub(crate) fn __rust_thunk___ZN14DocCommentBangC1EOS_<'a, 'b>(
Googlerbed0a2a2023-03-01 11:53:43 -0800546 __this: &'a mut ::core::mem::MaybeUninit<crate::DocCommentBang>,
Devin Jeanpierrecd5ebf32022-07-08 05:31:55 -0700547 __param_0: ::ctor::RvalueReference<'b, crate::DocCommentBang>,
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700548 );
Googler7341f5e2023-01-31 14:37:12 -0800549 pub(crate) fn __rust_thunk___ZN14DocCommentBangaSERKS_<'a, 'b>(
550 __this: &'a mut crate::DocCommentBang,
551 __param_0: &'b crate::DocCommentBang,
552 ) -> &'a mut crate::DocCommentBang;
553 pub(crate) fn __rust_thunk___ZN14DocCommentBangaSEOS_<'a, 'b>(
554 __this: &'a mut crate::DocCommentBang,
555 __param_0: ::ctor::RvalueReference<'b, crate::DocCommentBang>,
556 ) -> &'a mut crate::DocCommentBang;
Lukasz Anforowicz63f10da2022-01-26 16:59:36 +0000557 pub(crate) fn __rust_thunk___ZN24MultilineCommentTwoStarsC1Ev<'a>(
Googlerbed0a2a2023-03-01 11:53:43 -0800558 __this: &'a mut ::core::mem::MaybeUninit<crate::MultilineCommentTwoStars>,
Lukasz Anforowicza94ab702022-01-14 22:40:25 +0000559 );
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700560 pub(crate) fn __rust_thunk___ZN24MultilineCommentTwoStarsC1EOS_<'a, 'b>(
Googlerbed0a2a2023-03-01 11:53:43 -0800561 __this: &'a mut ::core::mem::MaybeUninit<crate::MultilineCommentTwoStars>,
Devin Jeanpierrecd5ebf32022-07-08 05:31:55 -0700562 __param_0: ::ctor::RvalueReference<'b, crate::MultilineCommentTwoStars>,
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700563 );
Googler7341f5e2023-01-31 14:37:12 -0800564 pub(crate) fn __rust_thunk___ZN24MultilineCommentTwoStarsaSERKS_<'a, 'b>(
565 __this: &'a mut crate::MultilineCommentTwoStars,
566 __param_0: &'b crate::MultilineCommentTwoStars,
567 ) -> &'a mut crate::MultilineCommentTwoStars;
568 pub(crate) fn __rust_thunk___ZN24MultilineCommentTwoStarsaSEOS_<'a, 'b>(
569 __this: &'a mut crate::MultilineCommentTwoStars,
570 __param_0: ::ctor::RvalueReference<'b, crate::MultilineCommentTwoStars>,
571 ) -> &'a mut crate::MultilineCommentTwoStars;
Lukasz Anforowicz63f10da2022-01-26 16:59:36 +0000572 pub(crate) fn __rust_thunk___ZN11LineCommentC1Ev<'a>(
Googlerbed0a2a2023-03-01 11:53:43 -0800573 __this: &'a mut ::core::mem::MaybeUninit<crate::LineComment>,
Lukasz Anforowicz40c2eb82022-01-11 18:22:31 +0000574 );
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700575 pub(crate) fn __rust_thunk___ZN11LineCommentC1EOS_<'a, 'b>(
Googlerbed0a2a2023-03-01 11:53:43 -0800576 __this: &'a mut ::core::mem::MaybeUninit<crate::LineComment>,
Devin Jeanpierrecd5ebf32022-07-08 05:31:55 -0700577 __param_0: ::ctor::RvalueReference<'b, crate::LineComment>,
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700578 );
Googler7341f5e2023-01-31 14:37:12 -0800579 pub(crate) fn __rust_thunk___ZN11LineCommentaSERKS_<'a, 'b>(
580 __this: &'a mut crate::LineComment,
581 __param_0: &'b crate::LineComment,
582 ) -> &'a mut crate::LineComment;
583 pub(crate) fn __rust_thunk___ZN11LineCommentaSEOS_<'a, 'b>(
584 __this: &'a mut crate::LineComment,
585 __param_0: ::ctor::RvalueReference<'b, crate::LineComment>,
586 ) -> &'a mut crate::LineComment;
Lukasz Anforowicz63f10da2022-01-26 16:59:36 +0000587 pub(crate) fn __rust_thunk___ZN16MultilineOneStarC1Ev<'a>(
Googlerbed0a2a2023-03-01 11:53:43 -0800588 __this: &'a mut ::core::mem::MaybeUninit<crate::MultilineOneStar>,
Lukasz Anforowicza94ab702022-01-14 22:40:25 +0000589 );
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700590 pub(crate) fn __rust_thunk___ZN16MultilineOneStarC1EOS_<'a, 'b>(
Googlerbed0a2a2023-03-01 11:53:43 -0800591 __this: &'a mut ::core::mem::MaybeUninit<crate::MultilineOneStar>,
Devin Jeanpierrecd5ebf32022-07-08 05:31:55 -0700592 __param_0: ::ctor::RvalueReference<'b, crate::MultilineOneStar>,
Devin Jeanpierredeea7892022-03-29 02:13:31 -0700593 );
Googler7341f5e2023-01-31 14:37:12 -0800594 pub(crate) fn __rust_thunk___ZN16MultilineOneStaraSERKS_<'a, 'b>(
595 __this: &'a mut crate::MultilineOneStar,
596 __param_0: &'b crate::MultilineOneStar,
597 ) -> &'a mut crate::MultilineOneStar;
598 pub(crate) fn __rust_thunk___ZN16MultilineOneStaraSEOS_<'a, 'b>(
599 __this: &'a mut crate::MultilineOneStar,
600 __param_0: ::ctor::RvalueReference<'b, crate::MultilineOneStar>,
601 ) -> &'a mut crate::MultilineOneStar;
Lukasz Anforowicz460e4272023-05-18 16:11:46 -0700602 pub(crate) fn __rust_thunk___Z3foov() -> ::core::ffi::c_int;
Lukasz Anforowicz8d1e4322022-06-08 07:56:06 -0700603 pub(crate) fn __rust_thunk___ZN10MyTemplateIiEC1Ev__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc<
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700604 'a,
605 >(
Googlerbed0a2a2023-03-01 11:53:43 -0800606 __this: &'a mut ::core::mem::MaybeUninit<crate::__CcTemplateInst10MyTemplateIiE>,
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700607 );
Lukasz Anforowicz8d1e4322022-06-08 07:56:06 -0700608 pub(crate) fn __rust_thunk___ZN10MyTemplateIiEC1EOS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc<
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700609 'a,
610 'b,
611 >(
Googlerbed0a2a2023-03-01 11:53:43 -0800612 __this: &'a mut ::core::mem::MaybeUninit<crate::__CcTemplateInst10MyTemplateIiE>,
Devin Jeanpierrecd5ebf32022-07-08 05:31:55 -0700613 __param_0: ::ctor::RvalueReference<'b, crate::__CcTemplateInst10MyTemplateIiE>,
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700614 );
Googler7341f5e2023-01-31 14:37:12 -0800615 pub(crate) fn __rust_thunk___ZN10MyTemplateIiEaSERKS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc<
616 'a,
617 'b,
618 >(
619 __this: &'a mut crate::__CcTemplateInst10MyTemplateIiE,
620 __param_0: &'b crate::__CcTemplateInst10MyTemplateIiE,
621 ) -> &'a mut crate::__CcTemplateInst10MyTemplateIiE;
622 pub(crate) fn __rust_thunk___ZN10MyTemplateIiEaSEOS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc<
623 'a,
624 'b,
625 >(
626 __this: &'a mut crate::__CcTemplateInst10MyTemplateIiE,
627 __param_0: ::ctor::RvalueReference<'b, crate::__CcTemplateInst10MyTemplateIiE>,
628 ) -> &'a mut crate::__CcTemplateInst10MyTemplateIiE;
Lukasz Anforowicz8d1e4322022-06-08 07:56:06 -0700629 pub(crate) fn __rust_thunk___ZNK10MyTemplateIiE15get_field_valueEv__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc<
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700630 'a,
631 >(
632 __this: &'a crate::__CcTemplateInst10MyTemplateIiE,
Lukasz Anforowicz460e4272023-05-18 16:11:46 -0700633 ) -> &'a ::core::ffi::c_int;
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700634 pub(crate) fn __rust_thunk___ZN10MyTemplateIfEC1Ev__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc<
635 'a,
636 >(
Googlerbed0a2a2023-03-01 11:53:43 -0800637 __this: &'a mut ::core::mem::MaybeUninit<crate::__CcTemplateInst10MyTemplateIfE>,
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700638 );
639 pub(crate) fn __rust_thunk___ZN10MyTemplateIfEC1EOS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc<
640 'a,
641 'b,
642 >(
Googlerbed0a2a2023-03-01 11:53:43 -0800643 __this: &'a mut ::core::mem::MaybeUninit<crate::__CcTemplateInst10MyTemplateIfE>,
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700644 __param_0: ::ctor::RvalueReference<'b, crate::__CcTemplateInst10MyTemplateIfE>,
645 );
Googler7341f5e2023-01-31 14:37:12 -0800646 pub(crate) fn __rust_thunk___ZN10MyTemplateIfEaSERKS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc<
647 'a,
648 'b,
649 >(
650 __this: &'a mut crate::__CcTemplateInst10MyTemplateIfE,
651 __param_0: &'b crate::__CcTemplateInst10MyTemplateIfE,
652 ) -> &'a mut crate::__CcTemplateInst10MyTemplateIfE;
653 pub(crate) fn __rust_thunk___ZN10MyTemplateIfEaSEOS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc<
654 'a,
655 'b,
656 >(
657 __this: &'a mut crate::__CcTemplateInst10MyTemplateIfE,
658 __param_0: ::ctor::RvalueReference<'b, crate::__CcTemplateInst10MyTemplateIfE>,
659 ) -> &'a mut crate::__CcTemplateInst10MyTemplateIfE;
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700660 pub(crate) fn __rust_thunk___ZNK10MyTemplateIfE15get_field_valueEv__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc<
661 'a,
662 >(
663 __this: &'a crate::__CcTemplateInst10MyTemplateIfE,
664 ) -> &'a f32;
Michael Forster409d9412021-10-07 08:35:29 +0000665 }
666}
Michael Forsterdb8101a2021-10-08 06:56:03 +0000667
Lukasz Anforowicz95938f82022-03-24 13:51:54 +0000668const _: () = {
Devin Jeanpierre0383d992024-02-27 13:05:38 -0800669 assert!(::core::mem::size_of::<crate::DocCommentSlashes>() == 4);
670 assert!(::core::mem::align_of::<crate::DocCommentSlashes>() == 4);
Devin Jeanpierre415c9482024-02-27 14:31:06 -0800671 static_assertions::assert_impl_all!(crate::DocCommentSlashes: Clone);
672 static_assertions::assert_impl_all!(crate::DocCommentSlashes: Copy);
673 static_assertions::assert_not_impl_any!(crate::DocCommentSlashes: Drop);
Devin Jeanpierredea05672024-03-26 15:16:37 -0700674 assert!(::core::mem::offset_of!(crate::DocCommentSlashes, i) == 0);
Michael Forsterdb8101a2021-10-08 06:56:03 +0000675
Devin Jeanpierre0383d992024-02-27 13:05:38 -0800676 assert!(::core::mem::size_of::<crate::DocCommentBang>() == 4);
677 assert!(::core::mem::align_of::<crate::DocCommentBang>() == 4);
Devin Jeanpierre415c9482024-02-27 14:31:06 -0800678 static_assertions::assert_impl_all!(crate::DocCommentBang: Clone);
679 static_assertions::assert_impl_all!(crate::DocCommentBang: Copy);
680 static_assertions::assert_not_impl_any!(crate::DocCommentBang: Drop);
Devin Jeanpierredea05672024-03-26 15:16:37 -0700681 assert!(::core::mem::offset_of!(crate::DocCommentBang, i) == 0);
Michael Forsterdb8101a2021-10-08 06:56:03 +0000682
Devin Jeanpierre0383d992024-02-27 13:05:38 -0800683 assert!(::core::mem::size_of::<crate::MultilineCommentTwoStars>() == 4);
684 assert!(::core::mem::align_of::<crate::MultilineCommentTwoStars>() == 4);
Devin Jeanpierre415c9482024-02-27 14:31:06 -0800685 static_assertions::assert_impl_all!(crate::MultilineCommentTwoStars: Clone);
686 static_assertions::assert_impl_all!(crate::MultilineCommentTwoStars: Copy);
687 static_assertions::assert_not_impl_any!(crate::MultilineCommentTwoStars: Drop);
Devin Jeanpierredea05672024-03-26 15:16:37 -0700688 assert!(::core::mem::offset_of!(crate::MultilineCommentTwoStars, i) == 0);
Michael Forsterdb8101a2021-10-08 06:56:03 +0000689
Devin Jeanpierre0383d992024-02-27 13:05:38 -0800690 assert!(::core::mem::size_of::<crate::LineComment>() == 4);
691 assert!(::core::mem::align_of::<crate::LineComment>() == 4);
Devin Jeanpierre415c9482024-02-27 14:31:06 -0800692 static_assertions::assert_impl_all!(crate::LineComment: Clone);
693 static_assertions::assert_impl_all!(crate::LineComment: Copy);
694 static_assertions::assert_not_impl_any!(crate::LineComment: Drop);
Devin Jeanpierredea05672024-03-26 15:16:37 -0700695 assert!(::core::mem::offset_of!(crate::LineComment, i) == 0);
Michael Forsterdb8101a2021-10-08 06:56:03 +0000696
Devin Jeanpierre0383d992024-02-27 13:05:38 -0800697 assert!(::core::mem::size_of::<crate::MultilineOneStar>() == 4);
698 assert!(::core::mem::align_of::<crate::MultilineOneStar>() == 4);
Devin Jeanpierre415c9482024-02-27 14:31:06 -0800699 static_assertions::assert_impl_all!(crate::MultilineOneStar: Clone);
700 static_assertions::assert_impl_all!(crate::MultilineOneStar: Copy);
701 static_assertions::assert_not_impl_any!(crate::MultilineOneStar: Drop);
Devin Jeanpierredea05672024-03-26 15:16:37 -0700702 assert!(::core::mem::offset_of!(crate::MultilineOneStar, i) == 0);
Lukasz Anforowiczb1ff2e52022-05-16 10:54:23 -0700703
Devin Jeanpierre0383d992024-02-27 13:05:38 -0800704 assert!(::core::mem::size_of::<crate::__CcTemplateInst10MyTemplateIiE>() == 4);
705 assert!(::core::mem::align_of::<crate::__CcTemplateInst10MyTemplateIiE>() == 4);
Devin Jeanpierre415c9482024-02-27 14:31:06 -0800706 static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIiE: Clone);
707 static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIiE: Copy);
708 static_assertions::assert_not_impl_any!(crate::__CcTemplateInst10MyTemplateIiE: Drop);
Devin Jeanpierredea05672024-03-26 15:16:37 -0700709 assert!(::core::mem::offset_of!(crate::__CcTemplateInst10MyTemplateIiE, value) == 0);
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700710
Devin Jeanpierre0383d992024-02-27 13:05:38 -0800711 assert!(::core::mem::size_of::<crate::__CcTemplateInst10MyTemplateIfE>() == 4);
712 assert!(::core::mem::align_of::<crate::__CcTemplateInst10MyTemplateIfE>() == 4);
Devin Jeanpierre415c9482024-02-27 14:31:06 -0800713 static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIfE: Clone);
714 static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIfE: Copy);
715 static_assertions::assert_not_impl_any!(crate::__CcTemplateInst10MyTemplateIfE: Drop);
Devin Jeanpierredea05672024-03-26 15:16:37 -0700716 assert!(::core::mem::offset_of!(crate::__CcTemplateInst10MyTemplateIfE, value) == 0);
Lukasz Anforowicz38310f32022-09-09 11:17:52 -0700717};