Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 1 | // 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 Anforowicz | 19e057d | 2022-10-28 12:03:23 -0700 | [diff] [blame] | 5 | // Automatically @generated Rust bindings for the following C++ target: |
Lukasz Anforowicz | 5b3f530 | 2022-02-07 01:04:47 +0000 | [diff] [blame] | 6 | // //rs_bindings_from_cc/test/golden:doc_comment_cc |
Dmitri Gribenko | b11faa4 | 2024-07-25 03:08:44 -0700 | [diff] [blame] | 7 | // Features: experimental, non_extern_c_functions, supported |
Lukasz Anforowicz | 19e057d | 2022-10-28 12:03:23 -0700 | [diff] [blame] | 8 | |
Devin Jeanpierre | 4335643 | 2023-01-13 12:39:02 -0800 | [diff] [blame] | 9 | #![rustfmt::skip] |
Devin Jeanpierre | 46427d5 | 2023-12-08 06:50:27 -0800 | [diff] [blame] | 10 | #![feature(custom_inner_attributes, negative_impls, register_tool)] |
Devin Jeanpierre | 4335643 | 2023-01-13 12:39:02 -0800 | [diff] [blame] | 11 | #![allow(stable_features)] |
Googler | 61afe91 | 2023-03-03 13:59:15 -0800 | [diff] [blame] | 12 | #![no_std] |
Devin Jeanpierre | 162d21f | 2023-11-21 15:14:00 -0800 | [diff] [blame] | 13 | #![register_tool(__crubit)] |
Lukasz Anforowicz | 4bb78a7 | 2023-03-06 14:10:37 -0800 | [diff] [blame] | 14 | #![allow(improper_ctypes)] |
Devin Jeanpierre | 989df11 | 2024-01-30 02:06:11 -0800 | [diff] [blame] | 15 | #![allow(nonstandard_style)] |
Dmitri Gribenko | f45b465 | 2024-08-02 09:16:23 -0700 | [diff] [blame^] | 16 | #![allow(dead_code)] |
Lukasz Anforowicz | cc26263 | 2022-05-12 15:07:43 -0700 | [diff] [blame] | 17 | #![deny(warnings)] |
Michael Forster | db8101a | 2021-10-08 06:56:03 +0000 | [diff] [blame] | 18 | |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 19 | /// Doc comment |
| 20 | /// |
| 21 | /// * with three slashes |
Devin Jeanpierre | 2ed14ec | 2021-10-06 11:32:19 +0000 | [diff] [blame] | 22 | #[derive(Clone, Copy)] |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 23 | #[repr(C)] |
Yongheng Chen | d5a6784 | 2024-07-19 13:57:35 -0700 | [diff] [blame] | 24 | #[__crubit::annotate(cpp_type = "DocCommentSlashes")] |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 25 | pub struct DocCommentSlashes { |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 26 | __non_field_data: [::core::mem::MaybeUninit<u8>; 0], |
Lukasz Anforowicz | 73326af | 2022-01-05 01:13:10 +0000 | [diff] [blame] | 27 | /// A field. |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 28 | pub i: ::core::ffi::c_int, |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 29 | } |
Devin Jeanpierre | 46427d5 | 2023-12-08 06:50:27 -0800 | [diff] [blame] | 30 | impl !Send for DocCommentSlashes {} |
| 31 | impl !Sync for DocCommentSlashes {} |
Rosica Dejanovska | 8283fe6 | 2022-05-09 10:04:28 -0700 | [diff] [blame] | 32 | forward_declare::unsafe_define!( |
| 33 | forward_declare::symbol!("DocCommentSlashes"), |
| 34 | crate::DocCommentSlashes |
| 35 | ); |
Michael Forster | db8101a | 2021-10-08 06:56:03 +0000 | [diff] [blame] | 36 | |
Felipe de A. Mello Pereira | 6f3cf16 | 2023-01-16 00:48:25 -0800 | [diff] [blame] | 37 | impl<'b> From<::ctor::RvalueReference<'b, Self>> for DocCommentSlashes { |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 38 | #[inline(always)] |
Felipe de A. Mello Pereira | 6f3cf16 | 2023-01-16 00:48:25 -0800 | [diff] [blame] | 39 | fn from(__param_0: ::ctor::RvalueReference<'b, Self>) -> Self { |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 40 | let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed(); |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 41 | unsafe { |
Rosica Dejanovska | 68c11ac | 2022-05-12 03:48:59 -0700 | [diff] [blame] | 42 | crate::detail::__rust_thunk___ZN17DocCommentSlashesC1EOS_(&mut tmp, __param_0); |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 43 | tmp.assume_init() |
| 44 | } |
| 45 | } |
| 46 | } |
Michael Forster | 365bba1 | 2022-01-24 16:56:06 +0000 | [diff] [blame] | 47 | |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 48 | impl<'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 Anforowicz | eb19ac6 | 2022-02-05 00:10:16 +0000 | [diff] [blame] | 56 | |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 57 | impl<'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 Forster | 365bba1 | 2022-01-24 16:56:06 +0000 | [diff] [blame] | 65 | |
Lukasz Anforowicz | 73326af | 2022-01-05 01:13:10 +0000 | [diff] [blame] | 66 | /// The default constructor which will get translated into |
| 67 | /// `impl Default for DocCommentSlashes`. |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 68 | impl Default for DocCommentSlashes { |
| 69 | #[inline(always)] |
| 70 | fn default() -> Self { |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 71 | let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed(); |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 72 | unsafe { |
Rosica Dejanovska | 68c11ac | 2022-05-12 03:48:59 -0700 | [diff] [blame] | 73 | crate::detail::__rust_thunk___ZN17DocCommentSlashesC1Ev(&mut tmp); |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 74 | tmp.assume_init() |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | |
Lukasz Anforowicz | 71716b7 | 2022-01-26 17:05:05 +0000 | [diff] [blame] | 79 | /// An implicit conversion constructor which will get translated into `impl |
| 80 | /// From<int> for DocCommentSlashes`. |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 81 | impl From<::core::ffi::c_int> for DocCommentSlashes { |
Lukasz Anforowicz | 73326af | 2022-01-05 01:13:10 +0000 | [diff] [blame] | 82 | #[inline(always)] |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 83 | fn from(__param_0: ::core::ffi::c_int) -> Self { |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 84 | let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed(); |
Lukasz Anforowicz | 73326af | 2022-01-05 01:13:10 +0000 | [diff] [blame] | 85 | unsafe { |
Rosica Dejanovska | 68c11ac | 2022-05-12 03:48:59 -0700 | [diff] [blame] | 86 | crate::detail::__rust_thunk___ZN17DocCommentSlashesC1Ei(&mut tmp, __param_0); |
Lukasz Anforowicz | 73326af | 2022-01-05 01:13:10 +0000 | [diff] [blame] | 87 | tmp.assume_init() |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | |
Lukasz Anforowicz | 2649d25 | 2021-12-17 08:59:47 +0000 | [diff] [blame] | 92 | impl DocCommentSlashes { |
Lukasz Anforowicz | 231a3bb | 2022-01-12 14:05:59 +0000 | [diff] [blame] | 93 | /// A non-static member function (`const` flavor). |
| 94 | #[inline(always)] |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 95 | pub fn get_field_value<'a>(&'a self) -> ::core::ffi::c_int { |
Rosica Dejanovska | 68c11ac | 2022-05-12 03:48:59 -0700 | [diff] [blame] | 96 | unsafe { crate::detail::__rust_thunk___ZNK17DocCommentSlashes15get_field_valueEv(self) } |
Lukasz Anforowicz | 231a3bb | 2022-01-12 14:05:59 +0000 | [diff] [blame] | 97 | } |
| 98 | } |
| 99 | |
| 100 | impl DocCommentSlashes { |
| 101 | /// A non-static member function (non-`const` flavor). |
| 102 | #[inline(always)] |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 103 | pub fn set_field_value<'a>(&'a mut self, new_value: ::core::ffi::c_int) { |
Rosica Dejanovska | 68c11ac | 2022-05-12 03:48:59 -0700 | [diff] [blame] | 104 | unsafe { |
| 105 | crate::detail::__rust_thunk___ZN17DocCommentSlashes15set_field_valueEi(self, new_value) |
| 106 | } |
Lukasz Anforowicz | 231a3bb | 2022-01-12 14:05:59 +0000 | [diff] [blame] | 107 | } |
| 108 | } |
| 109 | |
| 110 | impl DocCommentSlashes { |
Lukasz Anforowicz | 73326af | 2022-01-05 01:13:10 +0000 | [diff] [blame] | 111 | /// A static method. |
Lukasz Anforowicz | 2649d25 | 2021-12-17 08:59:47 +0000 | [diff] [blame] | 112 | #[inline(always)] |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 113 | pub fn static_method() -> ::core::ffi::c_int { |
Rosica Dejanovska | 68c11ac | 2022-05-12 03:48:59 -0700 | [diff] [blame] | 114 | unsafe { crate::detail::__rust_thunk___ZN17DocCommentSlashes13static_methodEv() } |
Lukasz Anforowicz | 2649d25 | 2021-12-17 08:59:47 +0000 | [diff] [blame] | 115 | } |
| 116 | } |
| 117 | |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 118 | /// Doc comment |
| 119 | /// |
| 120 | /// * with slashes and bang |
Devin Jeanpierre | 2ed14ec | 2021-10-06 11:32:19 +0000 | [diff] [blame] | 121 | #[derive(Clone, Copy)] |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 122 | #[repr(C)] |
Yongheng Chen | d5a6784 | 2024-07-19 13:57:35 -0700 | [diff] [blame] | 123 | #[__crubit::annotate(cpp_type = "DocCommentBang")] |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 124 | pub struct DocCommentBang { |
Michael Forster | cc5941a | 2021-10-07 07:12:24 +0000 | [diff] [blame] | 125 | /// A field |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 126 | pub i: ::core::ffi::c_int, |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 127 | } |
Devin Jeanpierre | 46427d5 | 2023-12-08 06:50:27 -0800 | [diff] [blame] | 128 | impl !Send for DocCommentBang {} |
| 129 | impl !Sync for DocCommentBang {} |
Rosica Dejanovska | 8283fe6 | 2022-05-09 10:04:28 -0700 | [diff] [blame] | 130 | forward_declare::unsafe_define!(forward_declare::symbol!("DocCommentBang"), crate::DocCommentBang); |
Michael Forster | db8101a | 2021-10-08 06:56:03 +0000 | [diff] [blame] | 131 | |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 132 | impl Default for DocCommentBang { |
Lukasz Anforowicz | 2649d25 | 2021-12-17 08:59:47 +0000 | [diff] [blame] | 133 | #[inline(always)] |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 134 | fn default() -> Self { |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 135 | let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed(); |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 136 | unsafe { |
Rosica Dejanovska | 68c11ac | 2022-05-12 03:48:59 -0700 | [diff] [blame] | 137 | crate::detail::__rust_thunk___ZN14DocCommentBangC1Ev(&mut tmp); |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 138 | tmp.assume_init() |
| 139 | } |
Lukasz Anforowicz | 2649d25 | 2021-12-17 08:59:47 +0000 | [diff] [blame] | 140 | } |
| 141 | } |
| 142 | |
Felipe de A. Mello Pereira | 6f3cf16 | 2023-01-16 00:48:25 -0800 | [diff] [blame] | 143 | impl<'b> From<::ctor::RvalueReference<'b, Self>> for DocCommentBang { |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 144 | #[inline(always)] |
Felipe de A. Mello Pereira | 6f3cf16 | 2023-01-16 00:48:25 -0800 | [diff] [blame] | 145 | fn from(__param_0: ::ctor::RvalueReference<'b, Self>) -> Self { |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 146 | let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed(); |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 147 | unsafe { |
Rosica Dejanovska | 68c11ac | 2022-05-12 03:48:59 -0700 | [diff] [blame] | 148 | crate::detail::__rust_thunk___ZN14DocCommentBangC1EOS_(&mut tmp, __param_0); |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 149 | tmp.assume_init() |
| 150 | } |
| 151 | } |
| 152 | } |
Devin Jeanpierre | 296c607 | 2021-10-27 10:53:05 +0000 | [diff] [blame] | 153 | |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 154 | impl<'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 Anforowicz | eb19ac6 | 2022-02-05 00:10:16 +0000 | [diff] [blame] | 162 | |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 163 | impl<'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 Jeanpierre | 296c607 | 2021-10-27 10:53:05 +0000 | [diff] [blame] | 171 | |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 172 | /// Multiline comment |
| 173 | /// |
| 174 | /// with two stars |
Devin Jeanpierre | 2ed14ec | 2021-10-06 11:32:19 +0000 | [diff] [blame] | 175 | #[derive(Clone, Copy)] |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 176 | #[repr(C)] |
Yongheng Chen | d5a6784 | 2024-07-19 13:57:35 -0700 | [diff] [blame] | 177 | #[__crubit::annotate(cpp_type = "MultilineCommentTwoStars")] |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 178 | pub struct MultilineCommentTwoStars { |
Michael Forster | cc5941a | 2021-10-07 07:12:24 +0000 | [diff] [blame] | 179 | /// A field |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 180 | pub i: ::core::ffi::c_int, |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 181 | } |
Devin Jeanpierre | 46427d5 | 2023-12-08 06:50:27 -0800 | [diff] [blame] | 182 | impl !Send for MultilineCommentTwoStars {} |
| 183 | impl !Sync for MultilineCommentTwoStars {} |
Devin Jeanpierre | 2745013 | 2022-04-11 13:52:01 -0700 | [diff] [blame] | 184 | forward_declare::unsafe_define!( |
| 185 | forward_declare::symbol!("MultilineCommentTwoStars"), |
Rosica Dejanovska | 8283fe6 | 2022-05-09 10:04:28 -0700 | [diff] [blame] | 186 | crate::MultilineCommentTwoStars |
Devin Jeanpierre | 2745013 | 2022-04-11 13:52:01 -0700 | [diff] [blame] | 187 | ); |
Michael Forster | db8101a | 2021-10-08 06:56:03 +0000 | [diff] [blame] | 188 | |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 189 | impl Default for MultilineCommentTwoStars { |
Lukasz Anforowicz | 2649d25 | 2021-12-17 08:59:47 +0000 | [diff] [blame] | 190 | #[inline(always)] |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 191 | fn default() -> Self { |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 192 | let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed(); |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 193 | unsafe { |
Rosica Dejanovska | 68c11ac | 2022-05-12 03:48:59 -0700 | [diff] [blame] | 194 | crate::detail::__rust_thunk___ZN24MultilineCommentTwoStarsC1Ev(&mut tmp); |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 195 | tmp.assume_init() |
| 196 | } |
Lukasz Anforowicz | 2649d25 | 2021-12-17 08:59:47 +0000 | [diff] [blame] | 197 | } |
| 198 | } |
| 199 | |
Felipe de A. Mello Pereira | 6f3cf16 | 2023-01-16 00:48:25 -0800 | [diff] [blame] | 200 | impl<'b> From<::ctor::RvalueReference<'b, Self>> for MultilineCommentTwoStars { |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 201 | #[inline(always)] |
Felipe de A. Mello Pereira | 6f3cf16 | 2023-01-16 00:48:25 -0800 | [diff] [blame] | 202 | fn from(__param_0: ::ctor::RvalueReference<'b, Self>) -> Self { |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 203 | let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed(); |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 204 | unsafe { |
Rosica Dejanovska | 68c11ac | 2022-05-12 03:48:59 -0700 | [diff] [blame] | 205 | crate::detail::__rust_thunk___ZN24MultilineCommentTwoStarsC1EOS_(&mut tmp, __param_0); |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 206 | tmp.assume_init() |
| 207 | } |
| 208 | } |
| 209 | } |
Devin Jeanpierre | 296c607 | 2021-10-27 10:53:05 +0000 | [diff] [blame] | 210 | |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 211 | impl<'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 Anforowicz | eb19ac6 | 2022-02-05 00:10:16 +0000 | [diff] [blame] | 219 | |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 220 | impl<'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 Jeanpierre | 296c607 | 2021-10-27 10:53:05 +0000 | [diff] [blame] | 228 | |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 229 | /// Line comment |
| 230 | /// |
| 231 | /// * with two slashes |
Devin Jeanpierre | 2ed14ec | 2021-10-06 11:32:19 +0000 | [diff] [blame] | 232 | #[derive(Clone, Copy)] |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 233 | #[repr(C)] |
Yongheng Chen | d5a6784 | 2024-07-19 13:57:35 -0700 | [diff] [blame] | 234 | #[__crubit::annotate(cpp_type = "LineComment")] |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 235 | pub struct LineComment { |
Michael Forster | cc5941a | 2021-10-07 07:12:24 +0000 | [diff] [blame] | 236 | /// A field |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 237 | pub i: ::core::ffi::c_int, |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 238 | } |
Devin Jeanpierre | 46427d5 | 2023-12-08 06:50:27 -0800 | [diff] [blame] | 239 | impl !Send for LineComment {} |
| 240 | impl !Sync for LineComment {} |
Rosica Dejanovska | 8283fe6 | 2022-05-09 10:04:28 -0700 | [diff] [blame] | 241 | forward_declare::unsafe_define!(forward_declare::symbol!("LineComment"), crate::LineComment); |
Michael Forster | db8101a | 2021-10-08 06:56:03 +0000 | [diff] [blame] | 242 | |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 243 | impl Default for LineComment { |
Lukasz Anforowicz | 2649d25 | 2021-12-17 08:59:47 +0000 | [diff] [blame] | 244 | #[inline(always)] |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 245 | fn default() -> Self { |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 246 | let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed(); |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 247 | unsafe { |
Rosica Dejanovska | 68c11ac | 2022-05-12 03:48:59 -0700 | [diff] [blame] | 248 | crate::detail::__rust_thunk___ZN11LineCommentC1Ev(&mut tmp); |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 249 | tmp.assume_init() |
| 250 | } |
Lukasz Anforowicz | 2649d25 | 2021-12-17 08:59:47 +0000 | [diff] [blame] | 251 | } |
| 252 | } |
| 253 | |
Felipe de A. Mello Pereira | 6f3cf16 | 2023-01-16 00:48:25 -0800 | [diff] [blame] | 254 | impl<'b> From<::ctor::RvalueReference<'b, Self>> for LineComment { |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 255 | #[inline(always)] |
Felipe de A. Mello Pereira | 6f3cf16 | 2023-01-16 00:48:25 -0800 | [diff] [blame] | 256 | fn from(__param_0: ::ctor::RvalueReference<'b, Self>) -> Self { |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 257 | let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed(); |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 258 | unsafe { |
Rosica Dejanovska | 68c11ac | 2022-05-12 03:48:59 -0700 | [diff] [blame] | 259 | crate::detail::__rust_thunk___ZN11LineCommentC1EOS_(&mut tmp, __param_0); |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 260 | tmp.assume_init() |
| 261 | } |
| 262 | } |
| 263 | } |
Devin Jeanpierre | 296c607 | 2021-10-27 10:53:05 +0000 | [diff] [blame] | 264 | |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 265 | impl<'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 Anforowicz | eb19ac6 | 2022-02-05 00:10:16 +0000 | [diff] [blame] | 273 | |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 274 | impl<'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 Jeanpierre | 296c607 | 2021-10-27 10:53:05 +0000 | [diff] [blame] | 282 | |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 283 | /// Multiline comment |
| 284 | /// |
| 285 | /// with one star |
Devin Jeanpierre | 2ed14ec | 2021-10-06 11:32:19 +0000 | [diff] [blame] | 286 | #[derive(Clone, Copy)] |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 287 | #[repr(C)] |
Yongheng Chen | d5a6784 | 2024-07-19 13:57:35 -0700 | [diff] [blame] | 288 | #[__crubit::annotate(cpp_type = "MultilineOneStar")] |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 289 | pub struct MultilineOneStar { |
Michael Forster | cc5941a | 2021-10-07 07:12:24 +0000 | [diff] [blame] | 290 | /// A field |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 291 | pub i: ::core::ffi::c_int, |
Michael Forster | 028800b | 2021-10-05 12:39:59 +0000 | [diff] [blame] | 292 | } |
Devin Jeanpierre | 46427d5 | 2023-12-08 06:50:27 -0800 | [diff] [blame] | 293 | impl !Send for MultilineOneStar {} |
| 294 | impl !Sync for MultilineOneStar {} |
Rosica Dejanovska | 8283fe6 | 2022-05-09 10:04:28 -0700 | [diff] [blame] | 295 | forward_declare::unsafe_define!( |
| 296 | forward_declare::symbol!("MultilineOneStar"), |
| 297 | crate::MultilineOneStar |
| 298 | ); |
Michael Forster | db8101a | 2021-10-08 06:56:03 +0000 | [diff] [blame] | 299 | |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 300 | impl Default for MultilineOneStar { |
Lukasz Anforowicz | 2649d25 | 2021-12-17 08:59:47 +0000 | [diff] [blame] | 301 | #[inline(always)] |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 302 | fn default() -> Self { |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 303 | let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed(); |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 304 | unsafe { |
Rosica Dejanovska | 68c11ac | 2022-05-12 03:48:59 -0700 | [diff] [blame] | 305 | crate::detail::__rust_thunk___ZN16MultilineOneStarC1Ev(&mut tmp); |
Lukasz Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 306 | tmp.assume_init() |
| 307 | } |
Lukasz Anforowicz | 2649d25 | 2021-12-17 08:59:47 +0000 | [diff] [blame] | 308 | } |
| 309 | } |
| 310 | |
Felipe de A. Mello Pereira | 6f3cf16 | 2023-01-16 00:48:25 -0800 | [diff] [blame] | 311 | impl<'b> From<::ctor::RvalueReference<'b, Self>> for MultilineOneStar { |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 312 | #[inline(always)] |
Felipe de A. Mello Pereira | 6f3cf16 | 2023-01-16 00:48:25 -0800 | [diff] [blame] | 313 | fn from(__param_0: ::ctor::RvalueReference<'b, Self>) -> Self { |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 314 | let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed(); |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 315 | unsafe { |
Rosica Dejanovska | 68c11ac | 2022-05-12 03:48:59 -0700 | [diff] [blame] | 316 | crate::detail::__rust_thunk___ZN16MultilineOneStarC1EOS_(&mut tmp, __param_0); |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 317 | tmp.assume_init() |
| 318 | } |
| 319 | } |
| 320 | } |
Devin Jeanpierre | 296c607 | 2021-10-27 10:53:05 +0000 | [diff] [blame] | 321 | |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 322 | impl<'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 Anforowicz | eb19ac6 | 2022-02-05 00:10:16 +0000 | [diff] [blame] | 330 | |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 331 | impl<'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 Jeanpierre | 296c607 | 2021-10-27 10:53:05 +0000 | [diff] [blame] | 339 | |
Michael Forster | 409d941 | 2021-10-07 08:35:29 +0000 | [diff] [blame] | 340 | /// A function |
| 341 | #[inline(always)] |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 342 | pub fn foo() -> ::core::ffi::c_int { |
Rosica Dejanovska | 68c11ac | 2022-05-12 03:48:59 -0700 | [diff] [blame] | 343 | unsafe { crate::detail::__rust_thunk___Z3foov() } |
Michael Forster | 409d941 | 2021-10-07 08:35:29 +0000 | [diff] [blame] | 344 | } |
Michael Forster | db8101a | 2021-10-08 06:56:03 +0000 | [diff] [blame] | 345 | |
Lukasz Anforowicz | c503af4 | 2022-03-04 23:18:15 +0000 | [diff] [blame] | 346 | /// A type alias |
Rosica Dejanovska | 8283fe6 | 2022-05-09 10:04:28 -0700 | [diff] [blame] | 347 | pub type MyTypeAlias = crate::DocCommentSlashes; |
Lukasz Anforowicz | c503af4 | 2022-03-04 23:18:15 +0000 | [diff] [blame] | 348 | |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 349 | // Error while generating bindings for item 'MyTemplate': |
| 350 | // Class templates are not supported yet |
| 351 | |
Lukasz Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 352 | // Class template specialization. |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 353 | |
Lukasz Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 354 | // A non-static member function in a specialization. |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 355 | |
Lukasz Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 356 | // Data member in a specialization. |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 357 | |
| 358 | /// Type alias to template instantiation. |
| 359 | pub type MyInstantiation = crate::__CcTemplateInst10MyTemplateIiE; |
| 360 | |
| 361 | /// Type alias to instantiation of a template specialization. |
| 362 | pub type MySpecializedInstantiation = crate::__CcTemplateInst10MyTemplateIfE; |
| 363 | |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 364 | // Error while generating bindings for item 'OuterTemplate': |
| 365 | // Class templates are not supported yet |
| 366 | |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 367 | // Error while generating bindings for item 'ConcreteNestedStruct': |
Devin Jeanpierre | e971ed7 | 2022-08-09 05:07:04 -0700 | [diff] [blame] | 368 | // Unsupported type 'struct OuterTemplate<int>::NestedStruct': No generated bindings found for 'NestedStruct' |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 369 | |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 370 | /// Class template. |
| 371 | #[derive(Clone, Copy)] |
| 372 | #[repr(C)] |
Yongheng Chen | d5a6784 | 2024-07-19 13:57:35 -0700 | [diff] [blame] | 373 | #[__crubit::annotate(cpp_type = "MyTemplate < int >")] |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 374 | pub struct __CcTemplateInst10MyTemplateIiE { |
| 375 | /// Data member. |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 376 | pub value: ::core::ffi::c_int, |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 377 | } |
Devin Jeanpierre | 46427d5 | 2023-12-08 06:50:27 -0800 | [diff] [blame] | 378 | impl !Send for __CcTemplateInst10MyTemplateIiE {} |
| 379 | impl !Sync for __CcTemplateInst10MyTemplateIiE {} |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 380 | forward_declare::unsafe_define!( |
Devin Jeanpierre | 241915d | 2023-09-27 13:47:23 -0700 | [diff] [blame] | 381 | forward_declare::symbol!("MyTemplate < int >"), |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 382 | crate::__CcTemplateInst10MyTemplateIiE |
| 383 | ); |
| 384 | |
| 385 | impl Default for __CcTemplateInst10MyTemplateIiE { |
| 386 | #[inline(always)] |
| 387 | fn default() -> Self { |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 388 | let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed(); |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 389 | unsafe { |
Lukasz Anforowicz | 8d1e432 | 2022-06-08 07:56:06 -0700 | [diff] [blame] | 390 | crate::detail::__rust_thunk___ZN10MyTemplateIiEC1Ev__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(&mut tmp); |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 391 | tmp.assume_init() |
| 392 | } |
| 393 | } |
| 394 | } |
| 395 | |
Felipe de A. Mello Pereira | 6f3cf16 | 2023-01-16 00:48:25 -0800 | [diff] [blame] | 396 | impl<'b> From<::ctor::RvalueReference<'b, Self>> for __CcTemplateInst10MyTemplateIiE { |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 397 | #[inline(always)] |
Felipe de A. Mello Pereira | 6f3cf16 | 2023-01-16 00:48:25 -0800 | [diff] [blame] | 398 | fn from(__param_0: ::ctor::RvalueReference<'b, Self>) -> Self { |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 399 | let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed(); |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 400 | unsafe { |
Lukasz Anforowicz | 8d1e432 | 2022-06-08 07:56:06 -0700 | [diff] [blame] | 401 | crate::detail::__rust_thunk___ZN10MyTemplateIiEC1EOS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(&mut tmp,__param_0); |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 402 | tmp.assume_init() |
| 403 | } |
| 404 | } |
| 405 | } |
| 406 | |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 407 | impl<'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 Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 415 | |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 416 | impl<'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 Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 426 | |
| 427 | // A non-static member function. |
| 428 | |
| 429 | impl __CcTemplateInst10MyTemplateIiE { |
| 430 | /// A non-static member function. |
| 431 | #[inline(always)] |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 432 | pub fn get_field_value<'a>(&'a self) -> &'a ::core::ffi::c_int { |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 433 | unsafe { |
Lukasz Anforowicz | 8d1e432 | 2022-06-08 07:56:06 -0700 | [diff] [blame] | 434 | crate::detail::__rust_thunk___ZNK10MyTemplateIiE15get_field_valueEv__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(self) |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 435 | } |
| 436 | } |
| 437 | } |
| 438 | |
Lukasz Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 439 | /// Class template specialization. |
| 440 | #[derive(Clone, Copy)] |
| 441 | #[repr(C)] |
Yongheng Chen | d5a6784 | 2024-07-19 13:57:35 -0700 | [diff] [blame] | 442 | #[__crubit::annotate(cpp_type = "MyTemplate < float >")] |
Lukasz Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 443 | pub struct __CcTemplateInst10MyTemplateIfE { |
| 444 | /// Data member in a specialization. |
| 445 | pub value: f32, |
| 446 | } |
Devin Jeanpierre | 46427d5 | 2023-12-08 06:50:27 -0800 | [diff] [blame] | 447 | impl !Send for __CcTemplateInst10MyTemplateIfE {} |
| 448 | impl !Sync for __CcTemplateInst10MyTemplateIfE {} |
Lukasz Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 449 | forward_declare::unsafe_define!( |
Devin Jeanpierre | 241915d | 2023-09-27 13:47:23 -0700 | [diff] [blame] | 450 | forward_declare::symbol!("MyTemplate < float >"), |
Lukasz Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 451 | crate::__CcTemplateInst10MyTemplateIfE |
| 452 | ); |
| 453 | |
| 454 | impl Default for __CcTemplateInst10MyTemplateIfE { |
| 455 | #[inline(always)] |
| 456 | fn default() -> Self { |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 457 | let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed(); |
Lukasz Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 458 | 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 Pereira | 6f3cf16 | 2023-01-16 00:48:25 -0800 | [diff] [blame] | 465 | impl<'b> From<::ctor::RvalueReference<'b, Self>> for __CcTemplateInst10MyTemplateIfE { |
Lukasz Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 466 | #[inline(always)] |
Felipe de A. Mello Pereira | 6f3cf16 | 2023-01-16 00:48:25 -0800 | [diff] [blame] | 467 | fn from(__param_0: ::ctor::RvalueReference<'b, Self>) -> Self { |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 468 | let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed(); |
Lukasz Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 469 | 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 | |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 476 | impl<'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 Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 484 | |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 485 | impl<'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 Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 495 | |
| 496 | impl __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 Forster | 409d941 | 2021-10-07 08:35:29 +0000 | [diff] [blame] | 506 | mod detail { |
Googler | 5564714 | 2022-01-11 12:37:39 +0000 | [diff] [blame] | 507 | #[allow(unused_imports)] |
Devin Jeanpierre | d4dde0e | 2021-10-13 20:48:25 +0000 | [diff] [blame] | 508 | use super::*; |
Michael Forster | 409d941 | 2021-10-07 08:35:29 +0000 | [diff] [blame] | 509 | extern "C" { |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 510 | pub(crate) fn __rust_thunk___ZN17DocCommentSlashesC1EOS_<'a, 'b>( |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 511 | __this: &'a mut ::core::mem::MaybeUninit<crate::DocCommentSlashes>, |
Devin Jeanpierre | cd5ebf3 | 2022-07-08 05:31:55 -0700 | [diff] [blame] | 512 | __param_0: ::ctor::RvalueReference<'b, crate::DocCommentSlashes>, |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 513 | ); |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 514 | 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 Anforowicz | 13cf749 | 2021-12-22 15:29:52 +0000 | [diff] [blame] | 522 | #[link_name = "_ZN17DocCommentSlashesC1Ev"] |
Lukasz Anforowicz | a1c2f5c | 2022-01-20 00:51:03 +0000 | [diff] [blame] | 523 | pub(crate) fn __rust_thunk___ZN17DocCommentSlashesC1Ev<'a>( |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 524 | __this: &'a mut ::core::mem::MaybeUninit<crate::DocCommentSlashes>, |
Lukasz Anforowicz | 40c2eb8 | 2022-01-11 18:22:31 +0000 | [diff] [blame] | 525 | ); |
Lukasz Anforowicz | 73326af | 2022-01-05 01:13:10 +0000 | [diff] [blame] | 526 | #[link_name = "_ZN17DocCommentSlashesC1Ei"] |
Lukasz Anforowicz | a1c2f5c | 2022-01-20 00:51:03 +0000 | [diff] [blame] | 527 | pub(crate) fn __rust_thunk___ZN17DocCommentSlashesC1Ei<'a>( |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 528 | __this: &'a mut ::core::mem::MaybeUninit<crate::DocCommentSlashes>, |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 529 | __param_0: ::core::ffi::c_int, |
Lukasz Anforowicz | 73326af | 2022-01-05 01:13:10 +0000 | [diff] [blame] | 530 | ); |
Lukasz Anforowicz | 231a3bb | 2022-01-12 14:05:59 +0000 | [diff] [blame] | 531 | #[link_name = "_ZNK17DocCommentSlashes15get_field_valueEv"] |
Lukasz Anforowicz | a1c2f5c | 2022-01-20 00:51:03 +0000 | [diff] [blame] | 532 | pub(crate) fn __rust_thunk___ZNK17DocCommentSlashes15get_field_valueEv<'a>( |
Rosica Dejanovska | 8283fe6 | 2022-05-09 10:04:28 -0700 | [diff] [blame] | 533 | __this: &'a crate::DocCommentSlashes, |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 534 | ) -> ::core::ffi::c_int; |
Lukasz Anforowicz | 231a3bb | 2022-01-12 14:05:59 +0000 | [diff] [blame] | 535 | #[link_name = "_ZN17DocCommentSlashes15set_field_valueEi"] |
Lukasz Anforowicz | a1c2f5c | 2022-01-20 00:51:03 +0000 | [diff] [blame] | 536 | pub(crate) fn __rust_thunk___ZN17DocCommentSlashes15set_field_valueEi<'a>( |
Rosica Dejanovska | 8283fe6 | 2022-05-09 10:04:28 -0700 | [diff] [blame] | 537 | __this: &'a mut crate::DocCommentSlashes, |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 538 | new_value: ::core::ffi::c_int, |
Lukasz Anforowicz | 231a3bb | 2022-01-12 14:05:59 +0000 | [diff] [blame] | 539 | ); |
Lukasz Anforowicz | 2649d25 | 2021-12-17 08:59:47 +0000 | [diff] [blame] | 540 | #[link_name = "_ZN17DocCommentSlashes13static_methodEv"] |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 541 | pub(crate) fn __rust_thunk___ZN17DocCommentSlashes13static_methodEv() -> ::core::ffi::c_int; |
Lukasz Anforowicz | 63f10da | 2022-01-26 16:59:36 +0000 | [diff] [blame] | 542 | pub(crate) fn __rust_thunk___ZN14DocCommentBangC1Ev<'a>( |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 543 | __this: &'a mut ::core::mem::MaybeUninit<crate::DocCommentBang>, |
Lukasz Anforowicz | 4ad012b | 2021-12-15 18:13:40 +0000 | [diff] [blame] | 544 | ); |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 545 | pub(crate) fn __rust_thunk___ZN14DocCommentBangC1EOS_<'a, 'b>( |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 546 | __this: &'a mut ::core::mem::MaybeUninit<crate::DocCommentBang>, |
Devin Jeanpierre | cd5ebf3 | 2022-07-08 05:31:55 -0700 | [diff] [blame] | 547 | __param_0: ::ctor::RvalueReference<'b, crate::DocCommentBang>, |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 548 | ); |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 549 | 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 Anforowicz | 63f10da | 2022-01-26 16:59:36 +0000 | [diff] [blame] | 557 | pub(crate) fn __rust_thunk___ZN24MultilineCommentTwoStarsC1Ev<'a>( |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 558 | __this: &'a mut ::core::mem::MaybeUninit<crate::MultilineCommentTwoStars>, |
Lukasz Anforowicz | a94ab70 | 2022-01-14 22:40:25 +0000 | [diff] [blame] | 559 | ); |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 560 | pub(crate) fn __rust_thunk___ZN24MultilineCommentTwoStarsC1EOS_<'a, 'b>( |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 561 | __this: &'a mut ::core::mem::MaybeUninit<crate::MultilineCommentTwoStars>, |
Devin Jeanpierre | cd5ebf3 | 2022-07-08 05:31:55 -0700 | [diff] [blame] | 562 | __param_0: ::ctor::RvalueReference<'b, crate::MultilineCommentTwoStars>, |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 563 | ); |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 564 | 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 Anforowicz | 63f10da | 2022-01-26 16:59:36 +0000 | [diff] [blame] | 572 | pub(crate) fn __rust_thunk___ZN11LineCommentC1Ev<'a>( |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 573 | __this: &'a mut ::core::mem::MaybeUninit<crate::LineComment>, |
Lukasz Anforowicz | 40c2eb8 | 2022-01-11 18:22:31 +0000 | [diff] [blame] | 574 | ); |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 575 | pub(crate) fn __rust_thunk___ZN11LineCommentC1EOS_<'a, 'b>( |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 576 | __this: &'a mut ::core::mem::MaybeUninit<crate::LineComment>, |
Devin Jeanpierre | cd5ebf3 | 2022-07-08 05:31:55 -0700 | [diff] [blame] | 577 | __param_0: ::ctor::RvalueReference<'b, crate::LineComment>, |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 578 | ); |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 579 | 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 Anforowicz | 63f10da | 2022-01-26 16:59:36 +0000 | [diff] [blame] | 587 | pub(crate) fn __rust_thunk___ZN16MultilineOneStarC1Ev<'a>( |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 588 | __this: &'a mut ::core::mem::MaybeUninit<crate::MultilineOneStar>, |
Lukasz Anforowicz | a94ab70 | 2022-01-14 22:40:25 +0000 | [diff] [blame] | 589 | ); |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 590 | pub(crate) fn __rust_thunk___ZN16MultilineOneStarC1EOS_<'a, 'b>( |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 591 | __this: &'a mut ::core::mem::MaybeUninit<crate::MultilineOneStar>, |
Devin Jeanpierre | cd5ebf3 | 2022-07-08 05:31:55 -0700 | [diff] [blame] | 592 | __param_0: ::ctor::RvalueReference<'b, crate::MultilineOneStar>, |
Devin Jeanpierre | deea789 | 2022-03-29 02:13:31 -0700 | [diff] [blame] | 593 | ); |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 594 | 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 Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 602 | pub(crate) fn __rust_thunk___Z3foov() -> ::core::ffi::c_int; |
Lukasz Anforowicz | 8d1e432 | 2022-06-08 07:56:06 -0700 | [diff] [blame] | 603 | pub(crate) fn __rust_thunk___ZN10MyTemplateIiEC1Ev__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc< |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 604 | 'a, |
| 605 | >( |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 606 | __this: &'a mut ::core::mem::MaybeUninit<crate::__CcTemplateInst10MyTemplateIiE>, |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 607 | ); |
Lukasz Anforowicz | 8d1e432 | 2022-06-08 07:56:06 -0700 | [diff] [blame] | 608 | pub(crate) fn __rust_thunk___ZN10MyTemplateIiEC1EOS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc< |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 609 | 'a, |
| 610 | 'b, |
| 611 | >( |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 612 | __this: &'a mut ::core::mem::MaybeUninit<crate::__CcTemplateInst10MyTemplateIiE>, |
Devin Jeanpierre | cd5ebf3 | 2022-07-08 05:31:55 -0700 | [diff] [blame] | 613 | __param_0: ::ctor::RvalueReference<'b, crate::__CcTemplateInst10MyTemplateIiE>, |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 614 | ); |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 615 | 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 Anforowicz | 8d1e432 | 2022-06-08 07:56:06 -0700 | [diff] [blame] | 629 | pub(crate) fn __rust_thunk___ZNK10MyTemplateIiE15get_field_valueEv__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc< |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 630 | 'a, |
| 631 | >( |
| 632 | __this: &'a crate::__CcTemplateInst10MyTemplateIiE, |
Lukasz Anforowicz | 460e427 | 2023-05-18 16:11:46 -0700 | [diff] [blame] | 633 | ) -> &'a ::core::ffi::c_int; |
Lukasz Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 634 | pub(crate) fn __rust_thunk___ZN10MyTemplateIfEC1Ev__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc< |
| 635 | 'a, |
| 636 | >( |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 637 | __this: &'a mut ::core::mem::MaybeUninit<crate::__CcTemplateInst10MyTemplateIfE>, |
Lukasz Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 638 | ); |
| 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 | >( |
Googler | bed0a2a | 2023-03-01 11:53:43 -0800 | [diff] [blame] | 643 | __this: &'a mut ::core::mem::MaybeUninit<crate::__CcTemplateInst10MyTemplateIfE>, |
Lukasz Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 644 | __param_0: ::ctor::RvalueReference<'b, crate::__CcTemplateInst10MyTemplateIfE>, |
| 645 | ); |
Googler | 7341f5e | 2023-01-31 14:37:12 -0800 | [diff] [blame] | 646 | 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 Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 660 | 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 Forster | 409d941 | 2021-10-07 08:35:29 +0000 | [diff] [blame] | 665 | } |
| 666 | } |
Michael Forster | db8101a | 2021-10-08 06:56:03 +0000 | [diff] [blame] | 667 | |
Lukasz Anforowicz | 95938f8 | 2022-03-24 13:51:54 +0000 | [diff] [blame] | 668 | const _: () = { |
Devin Jeanpierre | 0383d99 | 2024-02-27 13:05:38 -0800 | [diff] [blame] | 669 | assert!(::core::mem::size_of::<crate::DocCommentSlashes>() == 4); |
| 670 | assert!(::core::mem::align_of::<crate::DocCommentSlashes>() == 4); |
Devin Jeanpierre | 415c948 | 2024-02-27 14:31:06 -0800 | [diff] [blame] | 671 | 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 Jeanpierre | dea0567 | 2024-03-26 15:16:37 -0700 | [diff] [blame] | 674 | assert!(::core::mem::offset_of!(crate::DocCommentSlashes, i) == 0); |
Michael Forster | db8101a | 2021-10-08 06:56:03 +0000 | [diff] [blame] | 675 | |
Devin Jeanpierre | 0383d99 | 2024-02-27 13:05:38 -0800 | [diff] [blame] | 676 | assert!(::core::mem::size_of::<crate::DocCommentBang>() == 4); |
| 677 | assert!(::core::mem::align_of::<crate::DocCommentBang>() == 4); |
Devin Jeanpierre | 415c948 | 2024-02-27 14:31:06 -0800 | [diff] [blame] | 678 | 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 Jeanpierre | dea0567 | 2024-03-26 15:16:37 -0700 | [diff] [blame] | 681 | assert!(::core::mem::offset_of!(crate::DocCommentBang, i) == 0); |
Michael Forster | db8101a | 2021-10-08 06:56:03 +0000 | [diff] [blame] | 682 | |
Devin Jeanpierre | 0383d99 | 2024-02-27 13:05:38 -0800 | [diff] [blame] | 683 | assert!(::core::mem::size_of::<crate::MultilineCommentTwoStars>() == 4); |
| 684 | assert!(::core::mem::align_of::<crate::MultilineCommentTwoStars>() == 4); |
Devin Jeanpierre | 415c948 | 2024-02-27 14:31:06 -0800 | [diff] [blame] | 685 | 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 Jeanpierre | dea0567 | 2024-03-26 15:16:37 -0700 | [diff] [blame] | 688 | assert!(::core::mem::offset_of!(crate::MultilineCommentTwoStars, i) == 0); |
Michael Forster | db8101a | 2021-10-08 06:56:03 +0000 | [diff] [blame] | 689 | |
Devin Jeanpierre | 0383d99 | 2024-02-27 13:05:38 -0800 | [diff] [blame] | 690 | assert!(::core::mem::size_of::<crate::LineComment>() == 4); |
| 691 | assert!(::core::mem::align_of::<crate::LineComment>() == 4); |
Devin Jeanpierre | 415c948 | 2024-02-27 14:31:06 -0800 | [diff] [blame] | 692 | 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 Jeanpierre | dea0567 | 2024-03-26 15:16:37 -0700 | [diff] [blame] | 695 | assert!(::core::mem::offset_of!(crate::LineComment, i) == 0); |
Michael Forster | db8101a | 2021-10-08 06:56:03 +0000 | [diff] [blame] | 696 | |
Devin Jeanpierre | 0383d99 | 2024-02-27 13:05:38 -0800 | [diff] [blame] | 697 | assert!(::core::mem::size_of::<crate::MultilineOneStar>() == 4); |
| 698 | assert!(::core::mem::align_of::<crate::MultilineOneStar>() == 4); |
Devin Jeanpierre | 415c948 | 2024-02-27 14:31:06 -0800 | [diff] [blame] | 699 | 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 Jeanpierre | dea0567 | 2024-03-26 15:16:37 -0700 | [diff] [blame] | 702 | assert!(::core::mem::offset_of!(crate::MultilineOneStar, i) == 0); |
Lukasz Anforowicz | b1ff2e5 | 2022-05-16 10:54:23 -0700 | [diff] [blame] | 703 | |
Devin Jeanpierre | 0383d99 | 2024-02-27 13:05:38 -0800 | [diff] [blame] | 704 | assert!(::core::mem::size_of::<crate::__CcTemplateInst10MyTemplateIiE>() == 4); |
| 705 | assert!(::core::mem::align_of::<crate::__CcTemplateInst10MyTemplateIiE>() == 4); |
Devin Jeanpierre | 415c948 | 2024-02-27 14:31:06 -0800 | [diff] [blame] | 706 | 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 Jeanpierre | dea0567 | 2024-03-26 15:16:37 -0700 | [diff] [blame] | 709 | assert!(::core::mem::offset_of!(crate::__CcTemplateInst10MyTemplateIiE, value) == 0); |
Lukasz Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 710 | |
Devin Jeanpierre | 0383d99 | 2024-02-27 13:05:38 -0800 | [diff] [blame] | 711 | assert!(::core::mem::size_of::<crate::__CcTemplateInst10MyTemplateIfE>() == 4); |
| 712 | assert!(::core::mem::align_of::<crate::__CcTemplateInst10MyTemplateIfE>() == 4); |
Devin Jeanpierre | 415c948 | 2024-02-27 14:31:06 -0800 | [diff] [blame] | 713 | 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 Jeanpierre | dea0567 | 2024-03-26 15:16:37 -0700 | [diff] [blame] | 716 | assert!(::core::mem::offset_of!(crate::__CcTemplateInst10MyTemplateIfE, value) == 0); |
Lukasz Anforowicz | 38310f3 | 2022-09-09 11:17:52 -0700 | [diff] [blame] | 717 | }; |