html-to-markdown 2.23.4 → 2.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (585) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +7 -7
  3. data/README.md +9 -7
  4. data/ext/html-to-markdown-rb/native/Cargo.lock +21 -21
  5. data/ext/html-to-markdown-rb/native/Cargo.toml +1 -3
  6. data/lib/html_to_markdown/cli_proxy.rb +5 -2
  7. data/lib/html_to_markdown/version.rb +1 -1
  8. data/rust-vendor/cc/.cargo-checksum.json +1 -1
  9. data/rust-vendor/cc/.cargo_vcs_info.json +1 -1
  10. data/rust-vendor/cc/CHANGELOG.md +7 -0
  11. data/rust-vendor/cc/Cargo.lock +1 -1
  12. data/rust-vendor/cc/Cargo.toml +1 -1
  13. data/rust-vendor/cc/Cargo.toml.orig +1 -1
  14. data/rust-vendor/cc/src/target/generated.rs +1 -0
  15. data/rust-vendor/cc/src/target/parser.rs +4 -0
  16. data/rust-vendor/html-to-markdown-rs/README.md +1 -1
  17. data/rust-vendor/html-to-markdown-rs/src/convert_api.rs +90 -15
  18. data/rust-vendor/html-to-markdown-rs/src/converter/block/preformatted.rs +15 -4
  19. data/rust-vendor/html-to-markdown-rs/src/converter/handlers/graphic.rs +5 -3
  20. data/rust-vendor/html-to-markdown-rs/src/converter/media/svg.rs +5 -1
  21. data/rust-vendor/html-to-markdown-rs/src/converter/text/processing.rs +15 -8
  22. data/rust-vendor/html-to-markdown-rs/src/converter/utility/preprocessing.rs +43 -18
  23. data/rust-vendor/html-to-markdown-rs/src/lib.rs +6 -6
  24. data/rust-vendor/html-to-markdown-rs/src/validation.rs +68 -29
  25. data/rust-vendor/html-to-markdown-rs/tests/issue_190_regressions.rs +121 -0
  26. data/rust-vendor/html-to-markdown-rs/tests/skip_images_test.rs +21 -0
  27. data/rust-vendor/proc-macro2/.cargo-checksum.json +1 -1
  28. data/rust-vendor/proc-macro2/.cargo_vcs_info.json +1 -1
  29. data/rust-vendor/proc-macro2/Cargo.lock +14 -89
  30. data/rust-vendor/proc-macro2/Cargo.toml +1 -1
  31. data/rust-vendor/proc-macro2/Cargo.toml.orig +1 -1
  32. data/rust-vendor/proc-macro2/src/fallback.rs +37 -23
  33. data/rust-vendor/proc-macro2/src/lib.rs +1 -1
  34. data/rust-vendor/quote/.cargo-checksum.json +1 -1
  35. data/rust-vendor/quote/.cargo_vcs_info.json +1 -1
  36. data/rust-vendor/quote/.github/workflows/ci.yml +1 -1
  37. data/rust-vendor/quote/Cargo.lock +17 -17
  38. data/rust-vendor/quote/Cargo.toml +1 -1
  39. data/rust-vendor/quote/Cargo.toml.orig +1 -1
  40. data/rust-vendor/quote/src/format.rs +2 -2
  41. data/rust-vendor/quote/src/lib.rs +1 -1
  42. data/rust-vendor/quote/src/runtime.rs +2 -2
  43. data/rust-vendor/quote/tests/test.rs +6 -0
  44. data/rust-vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.stderr +2 -2
  45. data/rust-vendor/quote/tests/ui/does-not-have-iter-interpolated.stderr +2 -2
  46. data/rust-vendor/quote/tests/ui/does-not-have-iter-separated.stderr +2 -2
  47. data/rust-vendor/quote/tests/ui/does-not-have-iter.stderr +2 -2
  48. data/rust-vendor/quote/tests/ui/not-repeatable.stderr +8 -8
  49. data/rust-vendor/siphasher/.cargo-checksum.json +1 -1
  50. data/rust-vendor/siphasher/.cargo_vcs_info.json +1 -1
  51. data/rust-vendor/siphasher/.github/workflows/issues.yml +17 -0
  52. data/rust-vendor/siphasher/COPYING +1 -1
  53. data/rust-vendor/siphasher/Cargo.lock +89 -0
  54. data/rust-vendor/siphasher/Cargo.toml +23 -13
  55. data/rust-vendor/siphasher/Cargo.toml.orig +1 -1
  56. data/rust-vendor/siphasher/src/common.rs +65 -0
  57. data/rust-vendor/siphasher/src/lib.rs +1 -1
  58. data/rust-vendor/siphasher/src/sip.rs +2 -68
  59. data/rust-vendor/siphasher/src/sip128.rs +15 -74
  60. data/rust-vendor/siphasher/src/tests.rs +1 -1
  61. data/rust-vendor/siphasher/src/tests128.rs +1 -1
  62. data/rust-vendor/uuid/.cargo-checksum.json +1 -1
  63. data/rust-vendor/uuid/.cargo_vcs_info.json +1 -1
  64. data/rust-vendor/uuid/Cargo.lock +125 -96
  65. data/rust-vendor/uuid/Cargo.toml +4 -11
  66. data/rust-vendor/uuid/Cargo.toml.orig +5 -14
  67. data/rust-vendor/uuid/README.md +3 -3
  68. data/rust-vendor/uuid/src/builder.rs +2 -1
  69. data/rust-vendor/uuid/src/external/serde_support.rs +209 -142
  70. data/rust-vendor/uuid/src/lib.rs +9 -11
  71. data/rust-vendor/uuid/src/macros.rs +9 -54
  72. data/rust-vendor/uuid/src/non_nil.rs +49 -2
  73. data/rust-vendor/web_atoms/.cargo-checksum.json +1 -1
  74. data/rust-vendor/web_atoms/.cargo_vcs_info.json +1 -1
  75. data/rust-vendor/web_atoms/Cargo.lock +1 -1
  76. data/rust-vendor/web_atoms/Cargo.toml +1 -1
  77. data/rust-vendor/web_atoms/Cargo.toml.orig +1 -1
  78. data/rust-vendor/web_atoms/local_names.txt +3 -0
  79. data/rust-vendor/zerocopy/.cargo-checksum.json +1 -1
  80. data/rust-vendor/zerocopy/.cargo_vcs_info.json +1 -1
  81. data/rust-vendor/zerocopy/Cargo.lock +5 -9
  82. data/rust-vendor/zerocopy/Cargo.toml +10 -18
  83. data/rust-vendor/zerocopy/Cargo.toml.orig +6 -14
  84. data/rust-vendor/zerocopy/Cargo.toml.std +58 -0
  85. data/rust-vendor/zerocopy/agent_docs/ui_tests.md +5 -5
  86. data/rust-vendor/zerocopy/cargo.sh +1 -1
  87. data/rust-vendor/zerocopy/ci/check_fmt.sh +1 -1
  88. data/rust-vendor/zerocopy/ci/check_readme.sh +1 -1
  89. data/rust-vendor/zerocopy/ci/check_stale_stderr.sh +44 -0
  90. data/rust-vendor/zerocopy/githooks/pre-push +2 -0
  91. data/rust-vendor/zerocopy/src/byte_slice.rs +1 -1
  92. data/rust-vendor/zerocopy/src/byteorder.rs +0 -1
  93. data/rust-vendor/zerocopy/src/impls.rs +334 -118
  94. data/rust-vendor/zerocopy/src/layout.rs +9 -0
  95. data/rust-vendor/zerocopy/src/lib.rs +163 -74
  96. data/rust-vendor/zerocopy/src/macros.rs +4 -8
  97. data/rust-vendor/zerocopy/src/pointer/inner.rs +4 -4
  98. data/rust-vendor/zerocopy/src/pointer/invariant.rs +22 -5
  99. data/rust-vendor/zerocopy/src/pointer/mod.rs +155 -18
  100. data/rust-vendor/zerocopy/src/pointer/ptr.rs +133 -182
  101. data/rust-vendor/zerocopy/src/pointer/transmute.rs +99 -106
  102. data/rust-vendor/zerocopy/src/ref.rs +4 -4
  103. data/rust-vendor/zerocopy/src/util/macro_util.rs +73 -127
  104. data/rust-vendor/zerocopy/src/util/macros.rs +61 -150
  105. data/rust-vendor/zerocopy/src/wrappers.rs +249 -3
  106. data/rust-vendor/zerocopy/tests/include.rs +67 -0
  107. data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-from-bytes.rs +1 -3
  108. data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-from-bytes.stderr +6 -6
  109. data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-from-zeros.rs +1 -3
  110. data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-from-zeros.stderr +4 -4
  111. data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-immutable.rs +1 -3
  112. data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-immutable.stderr +6 -6
  113. data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-into-bytes.rs +1 -3
  114. data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-into-bytes.stderr +6 -6
  115. data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-issue-1296.rs +1 -3
  116. data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-issue-1296.stderr +8 -8
  117. data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-known-layout.rs +1 -3
  118. data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-known-layout.stderr +6 -6
  119. data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-try-from-bytes.rs +1 -3
  120. data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-try-from-bytes.stderr +6 -6
  121. data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-unaligned.rs +1 -3
  122. data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-unaligned.stderr +4 -4
  123. data/rust-vendor/zerocopy/tests/ui-msrv/include_value_not_from_bytes.rs +3 -5
  124. data/rust-vendor/zerocopy/tests/ui-msrv/include_value_not_from_bytes.stderr +10 -10
  125. data/rust-vendor/zerocopy/tests/ui-msrv/include_value_wrong_size.rs +1 -4
  126. data/rust-vendor/zerocopy/tests/ui-msrv/include_value_wrong_size.stderr +3 -3
  127. data/rust-vendor/zerocopy/tests/ui-msrv/invalid-impls/invalid-impls.rs +0 -1
  128. data/rust-vendor/zerocopy/tests/ui-msrv/invalid-impls/invalid-impls.stderr +35 -35
  129. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-dst-not-frombytes.rs +1 -3
  130. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-dst-not-frombytes.stderr +6 -6
  131. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-const.rs +1 -3
  132. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-const.stderr +10 -10
  133. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-a-reference.rs +0 -2
  134. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-a-reference.stderr +2 -2
  135. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-frombytes.rs +0 -2
  136. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-frombytes.stderr +2 -2
  137. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-intobytes.rs +0 -2
  138. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-intobytes.stderr +2 -2
  139. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-unsized.rs +0 -2
  140. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-unsized.stderr +2 -2
  141. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-dst-not-references.rs +0 -2
  142. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-dst-not-references.stderr +2 -2
  143. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-immutable.rs +0 -2
  144. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-immutable.stderr +2 -2
  145. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-a-reference.rs +0 -2
  146. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-a-reference.stderr +2 -2
  147. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-frombytes.rs +0 -2
  148. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-frombytes.stderr +2 -2
  149. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-intobytes.rs +0 -2
  150. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-intobytes.stderr +2 -2
  151. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-unsized.rs +0 -2
  152. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-unsized.stderr +2 -2
  153. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ptr-to-usize.rs +0 -2
  154. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ptr-to-usize.stderr +4 -4
  155. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-mutable.rs +0 -2
  156. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-mutable.stderr +6 -6
  157. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-a-reference.rs +0 -2
  158. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-a-reference.stderr +6 -6
  159. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-frombytes.rs +1 -3
  160. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-frombytes.stderr +6 -6
  161. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-nocell.rs +1 -3
  162. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-nocell.stderr +6 -6
  163. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-unsized.rs +0 -2
  164. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-unsized.stderr +2 -2
  165. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-dst-not-references.rs +0 -2
  166. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-dst-not-references.stderr +8 -8
  167. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-a-reference.rs +0 -2
  168. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-a-reference.stderr +2 -2
  169. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-intobytes.rs +1 -3
  170. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-intobytes.stderr +12 -12
  171. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-nocell.rs +1 -3
  172. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-nocell.stderr +12 -12
  173. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-unsized.rs +0 -2
  174. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-unsized.stderr +2 -2
  175. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-decrease.rs +1 -3
  176. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-decrease.stderr +2 -2
  177. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-increase-allow-shrink.rs +1 -3
  178. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-increase-allow-shrink.stderr +2 -2
  179. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-increase.rs +1 -3
  180. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-increase.stderr +2 -2
  181. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-src-not-intobytes.rs +1 -3
  182. data/rust-vendor/zerocopy/tests/ui-msrv/transmute-src-not-intobytes.stderr +6 -6
  183. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-dst-not-tryfrombytes.rs +1 -3
  184. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-dst-not-tryfrombytes.stderr +12 -12
  185. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-size-decrease.rs +1 -3
  186. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-size-decrease.stderr +2 -2
  187. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-size-increase.rs +1 -3
  188. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-size-increase.stderr +2 -2
  189. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-src-not-intobytes.rs +1 -3
  190. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-src-not-intobytes.stderr +4 -4
  191. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-alignment-increase.rs +1 -3
  192. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-alignment-increase.stderr +2 -2
  193. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-dst-not-tryfrombytes.rs +1 -3
  194. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-dst-not-tryfrombytes.stderr +16 -16
  195. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-decrease.rs +1 -3
  196. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-decrease.stderr +2 -2
  197. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-increase.rs +1 -3
  198. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-increase.stderr +4 -4
  199. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-frombytes.rs +0 -2
  200. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-frombytes.stderr +6 -6
  201. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-intobytes.rs +0 -2
  202. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-intobytes.stderr +6 -6
  203. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-alignment-increase.rs +1 -3
  204. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-alignment-increase.stderr +2 -2
  205. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-mutable.rs +0 -2
  206. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-mutable.stderr +4 -4
  207. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-not-immutable-tryfrombytes.rs +1 -3
  208. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr +16 -16
  209. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-decrease.rs +1 -3
  210. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-decrease.stderr +2 -2
  211. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-increase.rs +1 -3
  212. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-increase.stderr +2 -2
  213. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-src-not-immutable-intobytes.rs +1 -3
  214. data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-src-not-immutable-intobytes.stderr +8 -8
  215. data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-bytes.rs +1 -3
  216. data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-bytes.stderr +15 -15
  217. data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-zeros.rs +1 -3
  218. data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-zeros.stderr +12 -12
  219. data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-immutable.rs +1 -3
  220. data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-immutable.stderr +13 -13
  221. data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-into-bytes.rs +1 -3
  222. data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-into-bytes.stderr +8 -8
  223. data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-issue-1296.rs +1 -3
  224. data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-issue-1296.stderr +16 -16
  225. data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-known-layout.rs +1 -3
  226. data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-known-layout.stderr +8 -8
  227. data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-try-from-bytes.rs +1 -3
  228. data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-try-from-bytes.stderr +15 -15
  229. data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-unaligned.rs +1 -3
  230. data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-unaligned.stderr +5 -5
  231. data/rust-vendor/zerocopy/tests/ui-nightly/include_value_not_from_bytes.rs +3 -5
  232. data/rust-vendor/zerocopy/tests/ui-nightly/include_value_not_from_bytes.stderr +21 -21
  233. data/rust-vendor/zerocopy/tests/ui-nightly/include_value_wrong_size.rs +1 -4
  234. data/rust-vendor/zerocopy/tests/ui-nightly/include_value_wrong_size.stderr +8 -8
  235. data/rust-vendor/zerocopy/tests/ui-nightly/invalid-impls/invalid-impls.rs +0 -1
  236. data/rust-vendor/zerocopy/tests/ui-nightly/invalid-impls/invalid-impls.stderr +35 -51
  237. data/rust-vendor/zerocopy/tests/ui-nightly/ptr-is-invariant-over-v.stderr +2 -2
  238. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-dst-not-frombytes.rs +1 -3
  239. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-dst-not-frombytes.stderr +15 -15
  240. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-const.rs +1 -3
  241. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-const.stderr +7 -7
  242. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-a-reference.rs +0 -2
  243. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-a-reference.stderr +2 -2
  244. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-frombytes.rs +0 -2
  245. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-frombytes.stderr +12 -12
  246. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-intobytes.rs +0 -2
  247. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-intobytes.stderr +5 -5
  248. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-unsized.rs +0 -2
  249. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-unsized.stderr +3 -3
  250. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-dst-not-references.rs +0 -2
  251. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-dst-not-references.stderr +3 -3
  252. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-immutable.rs +0 -2
  253. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-immutable.stderr +2 -2
  254. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-a-reference.rs +0 -2
  255. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-a-reference.stderr +3 -3
  256. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-frombytes.rs +0 -2
  257. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-frombytes.stderr +12 -12
  258. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-intobytes.rs +0 -2
  259. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-intobytes.stderr +5 -5
  260. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-unsized.rs +0 -2
  261. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-unsized.stderr +3 -3
  262. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ptr-to-usize.rs +0 -2
  263. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ptr-to-usize.stderr +4 -4
  264. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-mutable.rs +0 -2
  265. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-mutable.stderr +6 -6
  266. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-a-reference.rs +0 -2
  267. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-a-reference.stderr +6 -6
  268. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-frombytes.rs +1 -3
  269. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-frombytes.stderr +16 -16
  270. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-nocell.rs +1 -3
  271. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-nocell.stderr +14 -14
  272. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-unsized.rs +0 -2
  273. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-unsized.stderr +3 -3
  274. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-dst-not-references.rs +0 -2
  275. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-dst-not-references.stderr +9 -9
  276. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-a-reference.rs +0 -2
  277. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-a-reference.stderr +3 -3
  278. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-intobytes.rs +1 -3
  279. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-intobytes.stderr +18 -18
  280. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-nocell.rs +1 -3
  281. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-nocell.stderr +28 -28
  282. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-unsized.rs +0 -2
  283. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-unsized.stderr +3 -3
  284. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-decrease.rs +1 -3
  285. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-decrease.stderr +4 -4
  286. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-increase-allow-shrink.rs +1 -3
  287. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-increase-allow-shrink.stderr +4 -4
  288. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-increase.rs +1 -3
  289. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-increase.stderr +4 -4
  290. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-src-not-intobytes.rs +1 -3
  291. data/rust-vendor/zerocopy/tests/ui-nightly/transmute-src-not-intobytes.stderr +8 -8
  292. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-dst-not-tryfrombytes.rs +1 -3
  293. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-dst-not-tryfrombytes.stderr +43 -43
  294. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-size-decrease.rs +1 -3
  295. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-size-decrease.stderr +2 -2
  296. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-size-increase.rs +1 -3
  297. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-size-increase.stderr +2 -2
  298. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-src-not-intobytes.rs +1 -3
  299. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-src-not-intobytes.stderr +8 -8
  300. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-alignment-increase.rs +1 -3
  301. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-alignment-increase.stderr +4 -4
  302. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-dst-not-tryfrombytes.rs +1 -3
  303. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-dst-not-tryfrombytes.stderr +51 -51
  304. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-decrease.rs +1 -3
  305. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-decrease.stderr +2 -2
  306. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-increase.rs +1 -3
  307. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-increase.stderr +4 -4
  308. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-frombytes.rs +0 -2
  309. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-frombytes.stderr +29 -29
  310. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-intobytes.rs +0 -2
  311. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-intobytes.stderr +22 -22
  312. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-alignment-increase.rs +1 -3
  313. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-alignment-increase.stderr +4 -4
  314. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-mutable.rs +0 -2
  315. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-mutable.stderr +6 -6
  316. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-not-immutable-tryfrombytes.rs +1 -3
  317. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr +56 -56
  318. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-decrease.rs +1 -3
  319. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-decrease.stderr +2 -2
  320. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-increase.rs +1 -3
  321. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-increase.stderr +4 -4
  322. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-src-not-immutable-intobytes.rs +1 -3
  323. data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-src-not-immutable-intobytes.stderr +21 -21
  324. data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-bytes.rs +1 -3
  325. data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-bytes.stderr +15 -15
  326. data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-zeros.rs +1 -3
  327. data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-zeros.stderr +12 -12
  328. data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-immutable.rs +1 -3
  329. data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-immutable.stderr +13 -13
  330. data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-into-bytes.rs +1 -3
  331. data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-into-bytes.stderr +8 -8
  332. data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-issue-1296.rs +1 -3
  333. data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-issue-1296.stderr +16 -16
  334. data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-known-layout.rs +1 -3
  335. data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-known-layout.stderr +8 -8
  336. data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-try-from-bytes.rs +1 -3
  337. data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-try-from-bytes.stderr +15 -15
  338. data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-unaligned.rs +1 -3
  339. data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-unaligned.stderr +5 -5
  340. data/rust-vendor/zerocopy/tests/ui-stable/include_value_not_from_bytes.rs +3 -5
  341. data/rust-vendor/zerocopy/tests/ui-stable/include_value_not_from_bytes.stderr +21 -21
  342. data/rust-vendor/zerocopy/tests/ui-stable/include_value_wrong_size.rs +1 -4
  343. data/rust-vendor/zerocopy/tests/ui-stable/include_value_wrong_size.stderr +8 -8
  344. data/rust-vendor/zerocopy/tests/ui-stable/invalid-impls/invalid-impls.rs +0 -1
  345. data/rust-vendor/zerocopy/tests/ui-stable/invalid-impls/invalid-impls.stderr +37 -37
  346. data/rust-vendor/zerocopy/tests/ui-stable/ptr-is-invariant-over-v.stderr +2 -2
  347. data/rust-vendor/zerocopy/tests/ui-stable/transmute-dst-not-frombytes.rs +1 -3
  348. data/rust-vendor/zerocopy/tests/ui-stable/transmute-dst-not-frombytes.stderr +15 -15
  349. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-const.rs +1 -3
  350. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-const.stderr +6 -6
  351. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-a-reference.rs +0 -2
  352. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-a-reference.stderr +2 -2
  353. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-frombytes.rs +0 -2
  354. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-frombytes.stderr +11 -11
  355. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-intobytes.rs +0 -2
  356. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-intobytes.stderr +4 -4
  357. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-unsized.rs +0 -2
  358. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-unsized.stderr +2 -2
  359. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-dst-not-references.rs +0 -2
  360. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-dst-not-references.stderr +3 -3
  361. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-immutable.rs +0 -2
  362. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-immutable.stderr +2 -2
  363. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-a-reference.rs +0 -2
  364. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-a-reference.stderr +3 -3
  365. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-frombytes.rs +0 -2
  366. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-frombytes.stderr +11 -11
  367. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-intobytes.rs +0 -2
  368. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-intobytes.stderr +4 -4
  369. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-unsized.rs +0 -2
  370. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-unsized.stderr +2 -2
  371. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ptr-to-usize.rs +0 -2
  372. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ptr-to-usize.stderr +9 -5
  373. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-mutable.rs +0 -2
  374. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-mutable.stderr +6 -6
  375. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-a-reference.rs +0 -2
  376. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-a-reference.stderr +6 -6
  377. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-frombytes.rs +1 -3
  378. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-frombytes.stderr +16 -16
  379. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-nocell.rs +1 -3
  380. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-nocell.stderr +14 -14
  381. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-unsized.rs +0 -2
  382. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-unsized.stderr +2 -2
  383. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-dst-not-references.rs +0 -2
  384. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-dst-not-references.stderr +9 -9
  385. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-a-reference.rs +0 -2
  386. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-a-reference.stderr +3 -3
  387. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-intobytes.rs +1 -3
  388. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-intobytes.stderr +18 -18
  389. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-nocell.rs +1 -3
  390. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-nocell.stderr +28 -28
  391. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-unsized.rs +0 -2
  392. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-unsized.stderr +2 -2
  393. data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-decrease.rs +1 -3
  394. data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-decrease.stderr +4 -4
  395. data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-increase-allow-shrink.rs +1 -3
  396. data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-increase-allow-shrink.stderr +4 -4
  397. data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-increase.rs +1 -3
  398. data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-increase.stderr +4 -4
  399. data/rust-vendor/zerocopy/tests/ui-stable/transmute-src-not-intobytes.rs +1 -3
  400. data/rust-vendor/zerocopy/tests/ui-stable/transmute-src-not-intobytes.stderr +8 -8
  401. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-dst-not-tryfrombytes.rs +1 -3
  402. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-dst-not-tryfrombytes.stderr +42 -42
  403. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-size-decrease.rs +1 -3
  404. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-size-decrease.stderr +2 -2
  405. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-size-increase.rs +1 -3
  406. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-size-increase.stderr +2 -2
  407. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-src-not-intobytes.rs +1 -3
  408. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-src-not-intobytes.stderr +7 -7
  409. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-alignment-increase.rs +1 -3
  410. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-alignment-increase.stderr +2 -2
  411. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.rs +1 -3
  412. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.stderr +49 -49
  413. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-decrease.rs +1 -3
  414. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-decrease.stderr +2 -2
  415. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-increase.rs +1 -3
  416. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-increase.stderr +4 -4
  417. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-frombytes.rs +0 -2
  418. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-frombytes.stderr +26 -26
  419. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-intobytes.rs +0 -2
  420. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-intobytes.stderr +19 -19
  421. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-alignment-increase.rs +1 -3
  422. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-alignment-increase.stderr +2 -2
  423. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-mutable.rs +0 -2
  424. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-mutable.stderr +6 -6
  425. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.rs +1 -3
  426. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr +54 -54
  427. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-decrease.rs +1 -3
  428. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-decrease.stderr +2 -2
  429. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-increase.rs +1 -3
  430. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-increase.stderr +2 -2
  431. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.rs +1 -3
  432. data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.stderr +19 -19
  433. data/rust-vendor/zerocopy-derive/.cargo-checksum.json +1 -1
  434. data/rust-vendor/zerocopy-derive/.cargo_vcs_info.json +1 -1
  435. data/rust-vendor/zerocopy-derive/Cargo.lock +3 -11
  436. data/rust-vendor/zerocopy-derive/Cargo.toml +13 -11
  437. data/rust-vendor/zerocopy-derive/Cargo.toml.orig +7 -10
  438. data/rust-vendor/zerocopy-derive/src/derive/from_bytes.rs +188 -0
  439. data/rust-vendor/zerocopy-derive/src/derive/into_bytes.rs +158 -0
  440. data/rust-vendor/zerocopy-derive/src/derive/known_layout.rs +348 -0
  441. data/rust-vendor/zerocopy-derive/src/derive/mod.rs +130 -0
  442. data/rust-vendor/zerocopy-derive/src/derive/try_from_bytes.rs +729 -0
  443. data/rust-vendor/zerocopy-derive/src/derive/unaligned.rs +78 -0
  444. data/rust-vendor/zerocopy-derive/src/lib.rs +31 -1893
  445. data/rust-vendor/zerocopy-derive/src/output_tests/expected/eq.expected.rs +17 -0
  446. data/rust-vendor/zerocopy-derive/src/output_tests/expected/from_bytes_enum.expected.rs +64 -0
  447. data/rust-vendor/zerocopy-derive/src/output_tests/expected/from_bytes_struct.expected.rs +64 -0
  448. data/rust-vendor/zerocopy-derive/src/output_tests/expected/from_bytes_union.expected.rs +144 -0
  449. data/rust-vendor/zerocopy-derive/src/output_tests/expected/from_zeros.expected.rs +39 -0
  450. data/rust-vendor/zerocopy-derive/src/output_tests/expected/hash.expected.rs +24 -0
  451. data/rust-vendor/zerocopy-derive/src/output_tests/expected/immutable.expected.rs +17 -0
  452. data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_enum.expected.rs +17 -0
  453. data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_struct_basic.expected.rs +25 -0
  454. data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_struct_empty.expected.rs +17 -0
  455. data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_struct_trailing.expected.rs +25 -0
  456. data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_struct_trailing_generic.expected.rs +21 -0
  457. data/rust-vendor/zerocopy-derive/src/output_tests/expected/known_layout_repr_c_struct.expected.rs +135 -0
  458. data/rust-vendor/zerocopy-derive/src/output_tests/expected/known_layout_struct.expected.rs +34 -0
  459. data/rust-vendor/zerocopy-derive/src/output_tests/expected/split_at_repr_c.expected.rs +22 -0
  460. data/rust-vendor/zerocopy-derive/src/output_tests/expected/split_at_repr_transparent.expected.rs +22 -0
  461. data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes.expected.rs +22 -0
  462. data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes_enum_1.expected.rs +2802 -0
  463. data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes_enum_2.expected.rs +2802 -0
  464. data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes_enum_3.expected.rs +2802 -0
  465. data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes_trivial_is_bit_valid_enum.expected.rs +22 -0
  466. data/rust-vendor/zerocopy-derive/src/output_tests/expected/unaligned.expected.rs +17 -0
  467. data/rust-vendor/zerocopy-derive/src/output_tests/mod.rs +960 -0
  468. data/rust-vendor/zerocopy-derive/src/util.rs +757 -0
  469. data/rust-vendor/zerocopy-derive/tests/deprecated.rs +6 -0
  470. data/rust-vendor/zerocopy-derive/tests/enum_from_zeros.rs +9 -0
  471. data/rust-vendor/zerocopy-derive/tests/enum_known_layout.rs +4 -0
  472. data/rust-vendor/zerocopy-derive/tests/enum_no_cell.rs +4 -0
  473. data/rust-vendor/zerocopy-derive/tests/enum_to_bytes.rs +14 -0
  474. data/rust-vendor/zerocopy-derive/tests/enum_try_from_bytes.rs +37 -15
  475. data/rust-vendor/zerocopy-derive/tests/enum_unaligned.rs +4 -0
  476. data/rust-vendor/zerocopy-derive/tests/eq.rs +1 -0
  477. data/rust-vendor/zerocopy-derive/tests/hash.rs +1 -0
  478. data/rust-vendor/zerocopy-derive/tests/hygiene.rs +3 -1
  479. data/rust-vendor/zerocopy-derive/tests/include.rs +26 -4
  480. data/rust-vendor/zerocopy-derive/tests/issue_2117.rs +1 -0
  481. data/rust-vendor/zerocopy-derive/tests/issue_2835.rs +2 -1
  482. data/rust-vendor/zerocopy-derive/tests/issue_2880.rs +292 -0
  483. data/rust-vendor/zerocopy-derive/tests/issue_2915.rs +78 -0
  484. data/rust-vendor/zerocopy-derive/tests/paths_and_modules.rs +3 -0
  485. data/rust-vendor/zerocopy-derive/tests/priv_in_pub.rs +2 -0
  486. data/rust-vendor/zerocopy-derive/tests/struct_from_bytes.rs +6 -0
  487. data/rust-vendor/zerocopy-derive/tests/struct_from_zeros.rs +6 -0
  488. data/rust-vendor/zerocopy-derive/tests/struct_known_layout.rs +9 -0
  489. data/rust-vendor/zerocopy-derive/tests/struct_no_cell.rs +8 -0
  490. data/rust-vendor/zerocopy-derive/tests/struct_to_bytes.rs +17 -0
  491. data/rust-vendor/zerocopy-derive/tests/struct_try_from_bytes.rs +29 -65
  492. data/rust-vendor/zerocopy-derive/tests/struct_unaligned.rs +7 -0
  493. data/rust-vendor/zerocopy-derive/tests/ui-msrv/derive_transparent.rs +3 -2
  494. data/rust-vendor/zerocopy-derive/tests/ui-msrv/derive_transparent.stderr +32 -32
  495. data/rust-vendor/zerocopy-derive/tests/ui-msrv/enum.rs +48 -1
  496. data/rust-vendor/zerocopy-derive/tests/ui-msrv/enum.stderr +129 -126
  497. data/rust-vendor/zerocopy-derive/tests/ui-msrv/enum_from_bytes_u8_too_few.rs +2 -1
  498. data/rust-vendor/zerocopy-derive/tests/ui-msrv/enum_from_bytes_u8_too_few.stderr +6 -6
  499. data/rust-vendor/zerocopy-derive/tests/ui-msrv/late_compile_pass.rs +9 -2
  500. data/rust-vendor/zerocopy-derive/tests/ui-msrv/late_compile_pass.stderr +37 -37
  501. data/rust-vendor/zerocopy-derive/tests/ui-msrv/mid_compile_pass.rs +6 -2
  502. data/rust-vendor/zerocopy-derive/tests/ui-msrv/mid_compile_pass.stderr +26 -26
  503. data/rust-vendor/zerocopy-derive/tests/ui-msrv/msrv_specific.rs +3 -2
  504. data/rust-vendor/zerocopy-derive/tests/ui-msrv/msrv_specific.stderr +7 -7
  505. data/rust-vendor/zerocopy-derive/tests/ui-msrv/privacy.rs +66 -29
  506. data/rust-vendor/zerocopy-derive/tests/ui-msrv/privacy.stderr +78 -78
  507. data/rust-vendor/zerocopy-derive/tests/ui-msrv/struct.rs +34 -2
  508. data/rust-vendor/zerocopy-derive/tests/ui-msrv/struct.stderr +79 -79
  509. data/rust-vendor/zerocopy-derive/tests/ui-msrv/union.rs +12 -1
  510. data/rust-vendor/zerocopy-derive/tests/ui-msrv/union.stderr +29 -29
  511. data/rust-vendor/zerocopy-derive/tests/ui-msrv/union_into_bytes_cfg/union_into_bytes_cfg.rs +3 -2
  512. data/rust-vendor/zerocopy-derive/tests/ui-nightly/absence_of_deprecated_warning.rs +3 -2
  513. data/rust-vendor/zerocopy-derive/tests/ui-nightly/absence_of_deprecated_warning.stderr +2 -2
  514. data/rust-vendor/zerocopy-derive/tests/ui-nightly/derive_transparent.rs +3 -2
  515. data/rust-vendor/zerocopy-derive/tests/ui-nightly/derive_transparent.stderr +57 -57
  516. data/rust-vendor/zerocopy-derive/tests/ui-nightly/enum.rs +48 -1
  517. data/rust-vendor/zerocopy-derive/tests/ui-nightly/enum.stderr +200 -192
  518. data/rust-vendor/zerocopy-derive/tests/ui-nightly/enum_from_bytes_u8_too_few.rs +2 -1
  519. data/rust-vendor/zerocopy-derive/tests/ui-nightly/enum_from_bytes_u8_too_few.stderr +6 -6
  520. data/rust-vendor/zerocopy-derive/tests/ui-nightly/late_compile_pass.rs +9 -2
  521. data/rust-vendor/zerocopy-derive/tests/ui-nightly/late_compile_pass.stderr +105 -105
  522. data/rust-vendor/zerocopy-derive/tests/ui-nightly/mid_compile_pass.rs +6 -2
  523. data/rust-vendor/zerocopy-derive/tests/ui-nightly/mid_compile_pass.stderr +29 -29
  524. data/rust-vendor/zerocopy-derive/tests/ui-nightly/privacy.rs +66 -29
  525. data/rust-vendor/zerocopy-derive/tests/ui-nightly/privacy.stderr +15 -15
  526. data/rust-vendor/zerocopy-derive/tests/ui-nightly/struct.rs +34 -2
  527. data/rust-vendor/zerocopy-derive/tests/ui-nightly/struct.stderr +130 -129
  528. data/rust-vendor/zerocopy-derive/tests/ui-nightly/union.rs +12 -1
  529. data/rust-vendor/zerocopy-derive/tests/ui-nightly/union.stderr +42 -42
  530. data/rust-vendor/zerocopy-derive/tests/ui-nightly/union_into_bytes_cfg/union_into_bytes_cfg.rs +3 -2
  531. data/rust-vendor/zerocopy-derive/tests/ui-stable/derive_transparent.rs +3 -2
  532. data/rust-vendor/zerocopy-derive/tests/ui-stable/derive_transparent.stderr +57 -57
  533. data/rust-vendor/zerocopy-derive/tests/ui-stable/enum.rs +48 -1
  534. data/rust-vendor/zerocopy-derive/tests/ui-stable/enum.stderr +201 -186
  535. data/rust-vendor/zerocopy-derive/tests/ui-stable/enum_from_bytes_u8_too_few.rs +2 -1
  536. data/rust-vendor/zerocopy-derive/tests/ui-stable/enum_from_bytes_u8_too_few.stderr +6 -6
  537. data/rust-vendor/zerocopy-derive/tests/ui-stable/late_compile_pass.rs +9 -2
  538. data/rust-vendor/zerocopy-derive/tests/ui-stable/late_compile_pass.stderr +105 -105
  539. data/rust-vendor/zerocopy-derive/tests/ui-stable/mid_compile_pass.rs +6 -2
  540. data/rust-vendor/zerocopy-derive/tests/ui-stable/mid_compile_pass.stderr +29 -29
  541. data/rust-vendor/zerocopy-derive/tests/ui-stable/privacy.rs +66 -29
  542. data/rust-vendor/zerocopy-derive/tests/ui-stable/privacy.stderr +15 -15
  543. data/rust-vendor/zerocopy-derive/tests/ui-stable/struct.rs +34 -2
  544. data/rust-vendor/zerocopy-derive/tests/ui-stable/struct.stderr +158 -129
  545. data/rust-vendor/zerocopy-derive/tests/ui-stable/union.rs +12 -1
  546. data/rust-vendor/zerocopy-derive/tests/ui-stable/union.stderr +48 -44
  547. data/rust-vendor/zerocopy-derive/tests/ui-stable/union_into_bytes_cfg/union_into_bytes_cfg.rs +3 -2
  548. data/rust-vendor/zerocopy-derive/tests/union_from_bytes.rs +15 -0
  549. data/rust-vendor/zerocopy-derive/tests/union_from_zeros.rs +14 -0
  550. data/rust-vendor/zerocopy-derive/tests/union_known_layout.rs +5 -0
  551. data/rust-vendor/zerocopy-derive/tests/union_no_cell.rs +5 -0
  552. data/rust-vendor/zerocopy-derive/tests/union_to_bytes.rs +5 -0
  553. data/rust-vendor/zerocopy-derive/tests/union_try_from_bytes.rs +34 -74
  554. data/rust-vendor/zerocopy-derive/tests/union_unaligned.rs +4 -1
  555. data/rust-vendor/zerocopy-derive/tests/unsafe_cell.rs +3 -0
  556. data/rust-vendor/zmij/.cargo-checksum.json +1 -1
  557. data/rust-vendor/zmij/.cargo_vcs_info.json +1 -1
  558. data/rust-vendor/zmij/Cargo.lock +10 -10
  559. data/rust-vendor/zmij/Cargo.toml +1 -1
  560. data/rust-vendor/zmij/Cargo.toml.orig +1 -1
  561. data/rust-vendor/zmij/README.md +1 -1
  562. data/rust-vendor/zmij/src/lib.rs +132 -158
  563. data/rust-vendor/zune-jpeg/.cargo-checksum.json +1 -1
  564. data/rust-vendor/zune-jpeg/.cargo_vcs_info.json +1 -1
  565. data/rust-vendor/zune-jpeg/Cargo.lock +1 -1
  566. data/rust-vendor/zune-jpeg/Cargo.toml +1 -1
  567. data/rust-vendor/zune-jpeg/Cargo.toml.orig +1 -1
  568. data/rust-vendor/zune-jpeg/src/bitstream.rs +1 -1
  569. data/rust-vendor/zune-jpeg/src/components.rs +2 -1
  570. data/rust-vendor/zune-jpeg/src/decoder.rs +3 -23
  571. data/rust-vendor/zune-jpeg/src/headers.rs +19 -1
  572. data/rust-vendor/zune-jpeg/src/lib.rs +1 -0
  573. data/rust-vendor/zune-jpeg/src/mcu.rs +6 -6
  574. data/rust-vendor/zune-jpeg/src/mcu_prog.rs +22 -34
  575. data/rust-vendor/zune-jpeg/src/upsampler/avx2.rs +3 -1
  576. data/rust-vendor/zune-jpeg/src/upsampler/neon.rs +13 -23
  577. data/rust-vendor/zune-jpeg/src/upsampler/portable_simd.rs +4 -1
  578. data/rust-vendor/zune-jpeg/src/upsampler/scalar.rs +4 -1
  579. metadata +41 -8
  580. data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-dst-unsized.stderr +0 -183
  581. data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-dst-unsized.stderr +0 -183
  582. data/rust-vendor/zerocopy-derive/src/enum.rs +0 -456
  583. data/rust-vendor/zerocopy-derive/src/ext.rs +0 -123
  584. data/rust-vendor/zerocopy-derive/src/output_tests.rs +0 -5608
  585. data/rust-vendor/zerocopy-derive/tests/crate_path.rs +0 -189
@@ -0,0 +1,2802 @@
1
+ #[allow(
2
+ deprecated,
3
+ private_bounds,
4
+ non_local_definitions,
5
+ non_camel_case_types,
6
+ non_upper_case_globals,
7
+ non_snake_case,
8
+ non_ascii_idents,
9
+ clippy::missing_inline_in_public_items,
10
+ )]
11
+ #[deny(ambiguous_associated_items)]
12
+ #[automatically_derived]
13
+ const _: () = {
14
+ unsafe impl<'a: 'static, X, Y: Deref, const N: usize> ::zerocopy::TryFromBytes
15
+ for ComplexWithGenerics<'a, { N }, X, Y>
16
+ where
17
+ X: Deref<Target = &'a [(X, Y); N]>,
18
+ u8: ::zerocopy::TryFromBytes,
19
+ X: ::zerocopy::TryFromBytes,
20
+ X::Target: ::zerocopy::TryFromBytes,
21
+ Y::Target: ::zerocopy::TryFromBytes,
22
+ [(X, Y); N]: ::zerocopy::TryFromBytes,
23
+ bool: ::zerocopy::TryFromBytes,
24
+ Y: ::zerocopy::TryFromBytes,
25
+ PhantomData<&'a [(X, Y); N]>: ::zerocopy::TryFromBytes,
26
+ {
27
+ fn only_derive_is_allowed_to_implement_this_trait() {}
28
+ fn is_bit_valid(
29
+ mut candidate: ::zerocopy::Maybe<'_, Self>,
30
+ ) -> ::zerocopy::util::macro_util::core_reexport::primitive::bool {
31
+ #[repr(u32)]
32
+ #[allow(dead_code)]
33
+ pub enum ___ZerocopyTag {
34
+ UnitLike,
35
+ StructLike,
36
+ TupleLike,
37
+ }
38
+ unsafe impl ::zerocopy::Immutable for ___ZerocopyTag {
39
+ fn only_derive_is_allowed_to_implement_this_trait() {}
40
+ }
41
+ type ___ZerocopyTagPrimitive = ::zerocopy::util::macro_util::SizeToTag<
42
+ {
43
+ ::zerocopy::util::macro_util::core_reexport::mem::size_of::<
44
+ ___ZerocopyTag,
45
+ >()
46
+ },
47
+ >;
48
+ const ___ZEROCOPY_TAG_UnitLike: ___ZerocopyTagPrimitive = ___ZerocopyTag::UnitLike
49
+ as ___ZerocopyTagPrimitive;
50
+ const ___ZEROCOPY_TAG_StructLike: ___ZerocopyTagPrimitive = ___ZerocopyTag::StructLike
51
+ as ___ZerocopyTagPrimitive;
52
+ const ___ZEROCOPY_TAG_TupleLike: ___ZerocopyTagPrimitive = ___ZerocopyTag::TupleLike
53
+ as ___ZerocopyTagPrimitive;
54
+ type ___ZerocopyOuterTag = ();
55
+ type ___ZerocopyInnerTag = ___ZerocopyTag;
56
+ #[repr(C)]
57
+ struct ___ZerocopyVariantStruct_StructLike<
58
+ 'a: 'static,
59
+ const N: usize,
60
+ X,
61
+ Y: Deref,
62
+ >(
63
+ ::zerocopy::util::macro_util::core_reexport::mem::MaybeUninit<
64
+ ___ZerocopyInnerTag,
65
+ >,
66
+ u8,
67
+ X,
68
+ X::Target,
69
+ Y::Target,
70
+ [(X, Y); N],
71
+ ::zerocopy::util::macro_util::core_reexport::marker::PhantomData<
72
+ ComplexWithGenerics<'a, N, X, Y>,
73
+ >,
74
+ )
75
+ where
76
+ X: Deref<Target = &'a [(X, Y); N]>;
77
+ #[allow(
78
+ deprecated,
79
+ private_bounds,
80
+ non_local_definitions,
81
+ non_camel_case_types,
82
+ non_upper_case_globals,
83
+ non_snake_case,
84
+ non_ascii_idents,
85
+ clippy::missing_inline_in_public_items,
86
+ )]
87
+ #[deny(ambiguous_associated_items)]
88
+ #[automatically_derived]
89
+ const _: () = {
90
+ unsafe impl<
91
+ 'a: 'static,
92
+ X,
93
+ Y: Deref,
94
+ const N: usize,
95
+ > ::zerocopy::TryFromBytes
96
+ for ___ZerocopyVariantStruct_StructLike<'a, { N }, X, Y>
97
+ where
98
+ X: Deref<Target = &'a [(X, Y); N]>,
99
+ ::zerocopy::util::macro_util::core_reexport::mem::MaybeUninit<
100
+ ___ZerocopyInnerTag,
101
+ >: ::zerocopy::TryFromBytes,
102
+ u8: ::zerocopy::TryFromBytes,
103
+ X: ::zerocopy::TryFromBytes,
104
+ X::Target: ::zerocopy::TryFromBytes,
105
+ Y::Target: ::zerocopy::TryFromBytes,
106
+ [(X, Y); N]: ::zerocopy::TryFromBytes,
107
+ ::zerocopy::util::macro_util::core_reexport::marker::PhantomData<
108
+ ComplexWithGenerics<'a, N, X, Y>,
109
+ >: ::zerocopy::TryFromBytes,
110
+ {
111
+ fn only_derive_is_allowed_to_implement_this_trait() {}
112
+ fn is_bit_valid(
113
+ mut candidate: ::zerocopy::Maybe<Self>,
114
+ ) -> ::zerocopy::util::macro_util::core_reexport::primitive::bool {
115
+ true
116
+ && {
117
+ let field_candidate = ::zerocopy::into_inner!(
118
+ candidate.reborrow().project:: < _, {
119
+ ::zerocopy::STRUCT_VARIANT_ID }, { ::zerocopy::ident_id!(0)
120
+ } > ()
121
+ );
122
+ <::zerocopy::util::macro_util::core_reexport::mem::MaybeUninit<
123
+ ___ZerocopyInnerTag,
124
+ > as ::zerocopy::TryFromBytes>::is_bit_valid(
125
+ field_candidate,
126
+ )
127
+ }
128
+ && {
129
+ let field_candidate = ::zerocopy::into_inner!(
130
+ candidate.reborrow().project:: < _, {
131
+ ::zerocopy::STRUCT_VARIANT_ID }, { ::zerocopy::ident_id!(1)
132
+ } > ()
133
+ );
134
+ <u8 as ::zerocopy::TryFromBytes>::is_bit_valid(
135
+ field_candidate,
136
+ )
137
+ }
138
+ && {
139
+ let field_candidate = ::zerocopy::into_inner!(
140
+ candidate.reborrow().project:: < _, {
141
+ ::zerocopy::STRUCT_VARIANT_ID }, { ::zerocopy::ident_id!(2)
142
+ } > ()
143
+ );
144
+ <X as ::zerocopy::TryFromBytes>::is_bit_valid(
145
+ field_candidate,
146
+ )
147
+ }
148
+ && {
149
+ let field_candidate = ::zerocopy::into_inner!(
150
+ candidate.reborrow().project:: < _, {
151
+ ::zerocopy::STRUCT_VARIANT_ID }, { ::zerocopy::ident_id!(3)
152
+ } > ()
153
+ );
154
+ <X::Target as ::zerocopy::TryFromBytes>::is_bit_valid(
155
+ field_candidate,
156
+ )
157
+ }
158
+ && {
159
+ let field_candidate = ::zerocopy::into_inner!(
160
+ candidate.reborrow().project:: < _, {
161
+ ::zerocopy::STRUCT_VARIANT_ID }, { ::zerocopy::ident_id!(4)
162
+ } > ()
163
+ );
164
+ <Y::Target as ::zerocopy::TryFromBytes>::is_bit_valid(
165
+ field_candidate,
166
+ )
167
+ }
168
+ && {
169
+ let field_candidate = ::zerocopy::into_inner!(
170
+ candidate.reborrow().project:: < _, {
171
+ ::zerocopy::STRUCT_VARIANT_ID }, { ::zerocopy::ident_id!(5)
172
+ } > ()
173
+ );
174
+ <[(
175
+ X,
176
+ Y,
177
+ ); N] as ::zerocopy::TryFromBytes>::is_bit_valid(
178
+ field_candidate,
179
+ )
180
+ }
181
+ && {
182
+ let field_candidate = ::zerocopy::into_inner!(
183
+ candidate.reborrow().project:: < _, {
184
+ ::zerocopy::STRUCT_VARIANT_ID }, { ::zerocopy::ident_id!(6)
185
+ } > ()
186
+ );
187
+ <::zerocopy::util::macro_util::core_reexport::marker::PhantomData<
188
+ ComplexWithGenerics<'a, N, X, Y>,
189
+ > as ::zerocopy::TryFromBytes>::is_bit_valid(
190
+ field_candidate,
191
+ )
192
+ }
193
+ }
194
+ }
195
+ #[allow(
196
+ deprecated,
197
+ private_bounds,
198
+ non_local_definitions,
199
+ non_camel_case_types,
200
+ non_upper_case_globals,
201
+ non_snake_case,
202
+ non_ascii_idents,
203
+ clippy::missing_inline_in_public_items,
204
+ )]
205
+ #[deny(ambiguous_associated_items)]
206
+ #[automatically_derived]
207
+ const _: () = {
208
+ enum ẕ0 {}
209
+ enum ẕ1 {}
210
+ enum ẕ2 {}
211
+ enum ẕ3 {}
212
+ enum ẕ4 {}
213
+ enum ẕ5 {}
214
+ enum ẕ6 {}
215
+ #[allow(
216
+ deprecated,
217
+ private_bounds,
218
+ non_local_definitions,
219
+ non_camel_case_types,
220
+ non_upper_case_globals,
221
+ non_snake_case,
222
+ non_ascii_idents,
223
+ clippy::missing_inline_in_public_items,
224
+ )]
225
+ #[deny(ambiguous_associated_items)]
226
+ #[automatically_derived]
227
+ const _: () = {
228
+ unsafe impl<
229
+ 'a: 'static,
230
+ X,
231
+ Y: Deref,
232
+ const N: usize,
233
+ > ::zerocopy::HasTag
234
+ for ___ZerocopyVariantStruct_StructLike<'a, { N }, X, Y>
235
+ where
236
+ X: Deref<Target = &'a [(X, Y); N]>,
237
+ {
238
+ fn only_derive_is_allowed_to_implement_this_trait() {}
239
+ type Tag = ();
240
+ type ProjectToTag = ::zerocopy::pointer::cast::CastToUnit;
241
+ }
242
+ };
243
+ #[allow(
244
+ deprecated,
245
+ private_bounds,
246
+ non_local_definitions,
247
+ non_camel_case_types,
248
+ non_upper_case_globals,
249
+ non_snake_case,
250
+ non_ascii_idents,
251
+ clippy::missing_inline_in_public_items,
252
+ )]
253
+ #[deny(ambiguous_associated_items)]
254
+ #[automatically_derived]
255
+ const _: () = {
256
+ unsafe impl<
257
+ 'a: 'static,
258
+ X,
259
+ Y: Deref,
260
+ const N: usize,
261
+ > ::zerocopy::HasField<
262
+ ẕ0,
263
+ { ::zerocopy::STRUCT_VARIANT_ID },
264
+ { ::zerocopy::ident_id!(0) },
265
+ > for ___ZerocopyVariantStruct_StructLike<'a, { N }, X, Y>
266
+ where
267
+ X: Deref<Target = &'a [(X, Y); N]>,
268
+ {
269
+ fn only_derive_is_allowed_to_implement_this_trait() {}
270
+ type Type = ::zerocopy::util::macro_util::core_reexport::mem::MaybeUninit<
271
+ ___ZerocopyInnerTag,
272
+ >;
273
+ #[inline(always)]
274
+ fn project(
275
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
276
+ ) -> *mut <Self as ::zerocopy::HasField<
277
+ ẕ0,
278
+ { ::zerocopy::STRUCT_VARIANT_ID },
279
+ { ::zerocopy::ident_id!(0) },
280
+ >>::Type {
281
+ let slf = slf.as_ptr();
282
+ unsafe {
283
+ ::zerocopy::util::macro_util::core_reexport::ptr::addr_of_mut!(
284
+ (* slf).0
285
+ )
286
+ }
287
+ }
288
+ }
289
+ #[allow(
290
+ deprecated,
291
+ private_bounds,
292
+ non_local_definitions,
293
+ non_camel_case_types,
294
+ non_upper_case_globals,
295
+ non_snake_case,
296
+ non_ascii_idents,
297
+ clippy::missing_inline_in_public_items,
298
+ )]
299
+ #[deny(ambiguous_associated_items)]
300
+ #[automatically_derived]
301
+ const _: () = {
302
+ unsafe impl<
303
+ 'a: 'static,
304
+ X,
305
+ Y: Deref,
306
+ Aliasing: ::zerocopy::invariant::Aliasing,
307
+ Alignment: ::zerocopy::invariant::Alignment,
308
+ const N: usize,
309
+ > ::zerocopy::ProjectField<
310
+ ẕ0,
311
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
312
+ { ::zerocopy::STRUCT_VARIANT_ID },
313
+ { ::zerocopy::ident_id!(0) },
314
+ > for ___ZerocopyVariantStruct_StructLike<'a, { N }, X, Y>
315
+ where
316
+ X: Deref<Target = &'a [(X, Y); N]>,
317
+ {
318
+ fn only_derive_is_allowed_to_implement_this_trait() {}
319
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
320
+ type Invariants = (
321
+ Aliasing,
322
+ Alignment,
323
+ ::zerocopy::invariant::Initialized,
324
+ );
325
+ }
326
+ };
327
+ };
328
+ #[allow(
329
+ deprecated,
330
+ private_bounds,
331
+ non_local_definitions,
332
+ non_camel_case_types,
333
+ non_upper_case_globals,
334
+ non_snake_case,
335
+ non_ascii_idents,
336
+ clippy::missing_inline_in_public_items,
337
+ )]
338
+ #[deny(ambiguous_associated_items)]
339
+ #[automatically_derived]
340
+ const _: () = {
341
+ unsafe impl<
342
+ 'a: 'static,
343
+ X,
344
+ Y: Deref,
345
+ const N: usize,
346
+ > ::zerocopy::HasField<
347
+ ẕ1,
348
+ { ::zerocopy::STRUCT_VARIANT_ID },
349
+ { ::zerocopy::ident_id!(1) },
350
+ > for ___ZerocopyVariantStruct_StructLike<'a, { N }, X, Y>
351
+ where
352
+ X: Deref<Target = &'a [(X, Y); N]>,
353
+ {
354
+ fn only_derive_is_allowed_to_implement_this_trait() {}
355
+ type Type = u8;
356
+ #[inline(always)]
357
+ fn project(
358
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
359
+ ) -> *mut <Self as ::zerocopy::HasField<
360
+ ẕ1,
361
+ { ::zerocopy::STRUCT_VARIANT_ID },
362
+ { ::zerocopy::ident_id!(1) },
363
+ >>::Type {
364
+ let slf = slf.as_ptr();
365
+ unsafe {
366
+ ::zerocopy::util::macro_util::core_reexport::ptr::addr_of_mut!(
367
+ (* slf).1
368
+ )
369
+ }
370
+ }
371
+ }
372
+ #[allow(
373
+ deprecated,
374
+ private_bounds,
375
+ non_local_definitions,
376
+ non_camel_case_types,
377
+ non_upper_case_globals,
378
+ non_snake_case,
379
+ non_ascii_idents,
380
+ clippy::missing_inline_in_public_items,
381
+ )]
382
+ #[deny(ambiguous_associated_items)]
383
+ #[automatically_derived]
384
+ const _: () = {
385
+ unsafe impl<
386
+ 'a: 'static,
387
+ X,
388
+ Y: Deref,
389
+ Aliasing: ::zerocopy::invariant::Aliasing,
390
+ Alignment: ::zerocopy::invariant::Alignment,
391
+ const N: usize,
392
+ > ::zerocopy::ProjectField<
393
+ ẕ1,
394
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
395
+ { ::zerocopy::STRUCT_VARIANT_ID },
396
+ { ::zerocopy::ident_id!(1) },
397
+ > for ___ZerocopyVariantStruct_StructLike<'a, { N }, X, Y>
398
+ where
399
+ X: Deref<Target = &'a [(X, Y); N]>,
400
+ {
401
+ fn only_derive_is_allowed_to_implement_this_trait() {}
402
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
403
+ type Invariants = (
404
+ Aliasing,
405
+ Alignment,
406
+ ::zerocopy::invariant::Initialized,
407
+ );
408
+ }
409
+ };
410
+ };
411
+ #[allow(
412
+ deprecated,
413
+ private_bounds,
414
+ non_local_definitions,
415
+ non_camel_case_types,
416
+ non_upper_case_globals,
417
+ non_snake_case,
418
+ non_ascii_idents,
419
+ clippy::missing_inline_in_public_items,
420
+ )]
421
+ #[deny(ambiguous_associated_items)]
422
+ #[automatically_derived]
423
+ const _: () = {
424
+ unsafe impl<
425
+ 'a: 'static,
426
+ X,
427
+ Y: Deref,
428
+ const N: usize,
429
+ > ::zerocopy::HasField<
430
+ ẕ2,
431
+ { ::zerocopy::STRUCT_VARIANT_ID },
432
+ { ::zerocopy::ident_id!(2) },
433
+ > for ___ZerocopyVariantStruct_StructLike<'a, { N }, X, Y>
434
+ where
435
+ X: Deref<Target = &'a [(X, Y); N]>,
436
+ {
437
+ fn only_derive_is_allowed_to_implement_this_trait() {}
438
+ type Type = X;
439
+ #[inline(always)]
440
+ fn project(
441
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
442
+ ) -> *mut <Self as ::zerocopy::HasField<
443
+ ẕ2,
444
+ { ::zerocopy::STRUCT_VARIANT_ID },
445
+ { ::zerocopy::ident_id!(2) },
446
+ >>::Type {
447
+ let slf = slf.as_ptr();
448
+ unsafe {
449
+ ::zerocopy::util::macro_util::core_reexport::ptr::addr_of_mut!(
450
+ (* slf).2
451
+ )
452
+ }
453
+ }
454
+ }
455
+ #[allow(
456
+ deprecated,
457
+ private_bounds,
458
+ non_local_definitions,
459
+ non_camel_case_types,
460
+ non_upper_case_globals,
461
+ non_snake_case,
462
+ non_ascii_idents,
463
+ clippy::missing_inline_in_public_items,
464
+ )]
465
+ #[deny(ambiguous_associated_items)]
466
+ #[automatically_derived]
467
+ const _: () = {
468
+ unsafe impl<
469
+ 'a: 'static,
470
+ X,
471
+ Y: Deref,
472
+ Aliasing: ::zerocopy::invariant::Aliasing,
473
+ Alignment: ::zerocopy::invariant::Alignment,
474
+ const N: usize,
475
+ > ::zerocopy::ProjectField<
476
+ ẕ2,
477
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
478
+ { ::zerocopy::STRUCT_VARIANT_ID },
479
+ { ::zerocopy::ident_id!(2) },
480
+ > for ___ZerocopyVariantStruct_StructLike<'a, { N }, X, Y>
481
+ where
482
+ X: Deref<Target = &'a [(X, Y); N]>,
483
+ {
484
+ fn only_derive_is_allowed_to_implement_this_trait() {}
485
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
486
+ type Invariants = (
487
+ Aliasing,
488
+ Alignment,
489
+ ::zerocopy::invariant::Initialized,
490
+ );
491
+ }
492
+ };
493
+ };
494
+ #[allow(
495
+ deprecated,
496
+ private_bounds,
497
+ non_local_definitions,
498
+ non_camel_case_types,
499
+ non_upper_case_globals,
500
+ non_snake_case,
501
+ non_ascii_idents,
502
+ clippy::missing_inline_in_public_items,
503
+ )]
504
+ #[deny(ambiguous_associated_items)]
505
+ #[automatically_derived]
506
+ const _: () = {
507
+ unsafe impl<
508
+ 'a: 'static,
509
+ X,
510
+ Y: Deref,
511
+ const N: usize,
512
+ > ::zerocopy::HasField<
513
+ ẕ3,
514
+ { ::zerocopy::STRUCT_VARIANT_ID },
515
+ { ::zerocopy::ident_id!(3) },
516
+ > for ___ZerocopyVariantStruct_StructLike<'a, { N }, X, Y>
517
+ where
518
+ X: Deref<Target = &'a [(X, Y); N]>,
519
+ {
520
+ fn only_derive_is_allowed_to_implement_this_trait() {}
521
+ type Type = X::Target;
522
+ #[inline(always)]
523
+ fn project(
524
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
525
+ ) -> *mut <Self as ::zerocopy::HasField<
526
+ ẕ3,
527
+ { ::zerocopy::STRUCT_VARIANT_ID },
528
+ { ::zerocopy::ident_id!(3) },
529
+ >>::Type {
530
+ let slf = slf.as_ptr();
531
+ unsafe {
532
+ ::zerocopy::util::macro_util::core_reexport::ptr::addr_of_mut!(
533
+ (* slf).3
534
+ )
535
+ }
536
+ }
537
+ }
538
+ #[allow(
539
+ deprecated,
540
+ private_bounds,
541
+ non_local_definitions,
542
+ non_camel_case_types,
543
+ non_upper_case_globals,
544
+ non_snake_case,
545
+ non_ascii_idents,
546
+ clippy::missing_inline_in_public_items,
547
+ )]
548
+ #[deny(ambiguous_associated_items)]
549
+ #[automatically_derived]
550
+ const _: () = {
551
+ unsafe impl<
552
+ 'a: 'static,
553
+ X,
554
+ Y: Deref,
555
+ Aliasing: ::zerocopy::invariant::Aliasing,
556
+ Alignment: ::zerocopy::invariant::Alignment,
557
+ const N: usize,
558
+ > ::zerocopy::ProjectField<
559
+ ẕ3,
560
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
561
+ { ::zerocopy::STRUCT_VARIANT_ID },
562
+ { ::zerocopy::ident_id!(3) },
563
+ > for ___ZerocopyVariantStruct_StructLike<'a, { N }, X, Y>
564
+ where
565
+ X: Deref<Target = &'a [(X, Y); N]>,
566
+ {
567
+ fn only_derive_is_allowed_to_implement_this_trait() {}
568
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
569
+ type Invariants = (
570
+ Aliasing,
571
+ Alignment,
572
+ ::zerocopy::invariant::Initialized,
573
+ );
574
+ }
575
+ };
576
+ };
577
+ #[allow(
578
+ deprecated,
579
+ private_bounds,
580
+ non_local_definitions,
581
+ non_camel_case_types,
582
+ non_upper_case_globals,
583
+ non_snake_case,
584
+ non_ascii_idents,
585
+ clippy::missing_inline_in_public_items,
586
+ )]
587
+ #[deny(ambiguous_associated_items)]
588
+ #[automatically_derived]
589
+ const _: () = {
590
+ unsafe impl<
591
+ 'a: 'static,
592
+ X,
593
+ Y: Deref,
594
+ const N: usize,
595
+ > ::zerocopy::HasField<
596
+ ẕ4,
597
+ { ::zerocopy::STRUCT_VARIANT_ID },
598
+ { ::zerocopy::ident_id!(4) },
599
+ > for ___ZerocopyVariantStruct_StructLike<'a, { N }, X, Y>
600
+ where
601
+ X: Deref<Target = &'a [(X, Y); N]>,
602
+ {
603
+ fn only_derive_is_allowed_to_implement_this_trait() {}
604
+ type Type = Y::Target;
605
+ #[inline(always)]
606
+ fn project(
607
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
608
+ ) -> *mut <Self as ::zerocopy::HasField<
609
+ ẕ4,
610
+ { ::zerocopy::STRUCT_VARIANT_ID },
611
+ { ::zerocopy::ident_id!(4) },
612
+ >>::Type {
613
+ let slf = slf.as_ptr();
614
+ unsafe {
615
+ ::zerocopy::util::macro_util::core_reexport::ptr::addr_of_mut!(
616
+ (* slf).4
617
+ )
618
+ }
619
+ }
620
+ }
621
+ #[allow(
622
+ deprecated,
623
+ private_bounds,
624
+ non_local_definitions,
625
+ non_camel_case_types,
626
+ non_upper_case_globals,
627
+ non_snake_case,
628
+ non_ascii_idents,
629
+ clippy::missing_inline_in_public_items,
630
+ )]
631
+ #[deny(ambiguous_associated_items)]
632
+ #[automatically_derived]
633
+ const _: () = {
634
+ unsafe impl<
635
+ 'a: 'static,
636
+ X,
637
+ Y: Deref,
638
+ Aliasing: ::zerocopy::invariant::Aliasing,
639
+ Alignment: ::zerocopy::invariant::Alignment,
640
+ const N: usize,
641
+ > ::zerocopy::ProjectField<
642
+ ẕ4,
643
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
644
+ { ::zerocopy::STRUCT_VARIANT_ID },
645
+ { ::zerocopy::ident_id!(4) },
646
+ > for ___ZerocopyVariantStruct_StructLike<'a, { N }, X, Y>
647
+ where
648
+ X: Deref<Target = &'a [(X, Y); N]>,
649
+ {
650
+ fn only_derive_is_allowed_to_implement_this_trait() {}
651
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
652
+ type Invariants = (
653
+ Aliasing,
654
+ Alignment,
655
+ ::zerocopy::invariant::Initialized,
656
+ );
657
+ }
658
+ };
659
+ };
660
+ #[allow(
661
+ deprecated,
662
+ private_bounds,
663
+ non_local_definitions,
664
+ non_camel_case_types,
665
+ non_upper_case_globals,
666
+ non_snake_case,
667
+ non_ascii_idents,
668
+ clippy::missing_inline_in_public_items,
669
+ )]
670
+ #[deny(ambiguous_associated_items)]
671
+ #[automatically_derived]
672
+ const _: () = {
673
+ unsafe impl<
674
+ 'a: 'static,
675
+ X,
676
+ Y: Deref,
677
+ const N: usize,
678
+ > ::zerocopy::HasField<
679
+ ẕ5,
680
+ { ::zerocopy::STRUCT_VARIANT_ID },
681
+ { ::zerocopy::ident_id!(5) },
682
+ > for ___ZerocopyVariantStruct_StructLike<'a, { N }, X, Y>
683
+ where
684
+ X: Deref<Target = &'a [(X, Y); N]>,
685
+ {
686
+ fn only_derive_is_allowed_to_implement_this_trait() {}
687
+ type Type = [(X, Y); N];
688
+ #[inline(always)]
689
+ fn project(
690
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
691
+ ) -> *mut <Self as ::zerocopy::HasField<
692
+ ẕ5,
693
+ { ::zerocopy::STRUCT_VARIANT_ID },
694
+ { ::zerocopy::ident_id!(5) },
695
+ >>::Type {
696
+ let slf = slf.as_ptr();
697
+ unsafe {
698
+ ::zerocopy::util::macro_util::core_reexport::ptr::addr_of_mut!(
699
+ (* slf).5
700
+ )
701
+ }
702
+ }
703
+ }
704
+ #[allow(
705
+ deprecated,
706
+ private_bounds,
707
+ non_local_definitions,
708
+ non_camel_case_types,
709
+ non_upper_case_globals,
710
+ non_snake_case,
711
+ non_ascii_idents,
712
+ clippy::missing_inline_in_public_items,
713
+ )]
714
+ #[deny(ambiguous_associated_items)]
715
+ #[automatically_derived]
716
+ const _: () = {
717
+ unsafe impl<
718
+ 'a: 'static,
719
+ X,
720
+ Y: Deref,
721
+ Aliasing: ::zerocopy::invariant::Aliasing,
722
+ Alignment: ::zerocopy::invariant::Alignment,
723
+ const N: usize,
724
+ > ::zerocopy::ProjectField<
725
+ ẕ5,
726
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
727
+ { ::zerocopy::STRUCT_VARIANT_ID },
728
+ { ::zerocopy::ident_id!(5) },
729
+ > for ___ZerocopyVariantStruct_StructLike<'a, { N }, X, Y>
730
+ where
731
+ X: Deref<Target = &'a [(X, Y); N]>,
732
+ {
733
+ fn only_derive_is_allowed_to_implement_this_trait() {}
734
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
735
+ type Invariants = (
736
+ Aliasing,
737
+ Alignment,
738
+ ::zerocopy::invariant::Initialized,
739
+ );
740
+ }
741
+ };
742
+ };
743
+ #[allow(
744
+ deprecated,
745
+ private_bounds,
746
+ non_local_definitions,
747
+ non_camel_case_types,
748
+ non_upper_case_globals,
749
+ non_snake_case,
750
+ non_ascii_idents,
751
+ clippy::missing_inline_in_public_items,
752
+ )]
753
+ #[deny(ambiguous_associated_items)]
754
+ #[automatically_derived]
755
+ const _: () = {
756
+ unsafe impl<
757
+ 'a: 'static,
758
+ X,
759
+ Y: Deref,
760
+ const N: usize,
761
+ > ::zerocopy::HasField<
762
+ ẕ6,
763
+ { ::zerocopy::STRUCT_VARIANT_ID },
764
+ { ::zerocopy::ident_id!(6) },
765
+ > for ___ZerocopyVariantStruct_StructLike<'a, { N }, X, Y>
766
+ where
767
+ X: Deref<Target = &'a [(X, Y); N]>,
768
+ {
769
+ fn only_derive_is_allowed_to_implement_this_trait() {}
770
+ type Type = ::zerocopy::util::macro_util::core_reexport::marker::PhantomData<
771
+ ComplexWithGenerics<'a, N, X, Y>,
772
+ >;
773
+ #[inline(always)]
774
+ fn project(
775
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
776
+ ) -> *mut <Self as ::zerocopy::HasField<
777
+ ẕ6,
778
+ { ::zerocopy::STRUCT_VARIANT_ID },
779
+ { ::zerocopy::ident_id!(6) },
780
+ >>::Type {
781
+ let slf = slf.as_ptr();
782
+ unsafe {
783
+ ::zerocopy::util::macro_util::core_reexport::ptr::addr_of_mut!(
784
+ (* slf).6
785
+ )
786
+ }
787
+ }
788
+ }
789
+ #[allow(
790
+ deprecated,
791
+ private_bounds,
792
+ non_local_definitions,
793
+ non_camel_case_types,
794
+ non_upper_case_globals,
795
+ non_snake_case,
796
+ non_ascii_idents,
797
+ clippy::missing_inline_in_public_items,
798
+ )]
799
+ #[deny(ambiguous_associated_items)]
800
+ #[automatically_derived]
801
+ const _: () = {
802
+ unsafe impl<
803
+ 'a: 'static,
804
+ X,
805
+ Y: Deref,
806
+ Aliasing: ::zerocopy::invariant::Aliasing,
807
+ Alignment: ::zerocopy::invariant::Alignment,
808
+ const N: usize,
809
+ > ::zerocopy::ProjectField<
810
+ ẕ6,
811
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
812
+ { ::zerocopy::STRUCT_VARIANT_ID },
813
+ { ::zerocopy::ident_id!(6) },
814
+ > for ___ZerocopyVariantStruct_StructLike<'a, { N }, X, Y>
815
+ where
816
+ X: Deref<Target = &'a [(X, Y); N]>,
817
+ {
818
+ fn only_derive_is_allowed_to_implement_this_trait() {}
819
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
820
+ type Invariants = (
821
+ Aliasing,
822
+ Alignment,
823
+ ::zerocopy::invariant::Initialized,
824
+ );
825
+ }
826
+ };
827
+ };
828
+ };
829
+ };
830
+ #[repr(C)]
831
+ struct ___ZerocopyVariantStruct_TupleLike<
832
+ 'a: 'static,
833
+ const N: usize,
834
+ X,
835
+ Y: Deref,
836
+ >(
837
+ ::zerocopy::util::macro_util::core_reexport::mem::MaybeUninit<
838
+ ___ZerocopyInnerTag,
839
+ >,
840
+ bool,
841
+ Y,
842
+ PhantomData<&'a [(X, Y); N]>,
843
+ ::zerocopy::util::macro_util::core_reexport::marker::PhantomData<
844
+ ComplexWithGenerics<'a, N, X, Y>,
845
+ >,
846
+ )
847
+ where
848
+ X: Deref<Target = &'a [(X, Y); N]>;
849
+ #[allow(
850
+ deprecated,
851
+ private_bounds,
852
+ non_local_definitions,
853
+ non_camel_case_types,
854
+ non_upper_case_globals,
855
+ non_snake_case,
856
+ non_ascii_idents,
857
+ clippy::missing_inline_in_public_items,
858
+ )]
859
+ #[deny(ambiguous_associated_items)]
860
+ #[automatically_derived]
861
+ const _: () = {
862
+ unsafe impl<
863
+ 'a: 'static,
864
+ X,
865
+ Y: Deref,
866
+ const N: usize,
867
+ > ::zerocopy::TryFromBytes
868
+ for ___ZerocopyVariantStruct_TupleLike<'a, { N }, X, Y>
869
+ where
870
+ X: Deref<Target = &'a [(X, Y); N]>,
871
+ ::zerocopy::util::macro_util::core_reexport::mem::MaybeUninit<
872
+ ___ZerocopyInnerTag,
873
+ >: ::zerocopy::TryFromBytes,
874
+ bool: ::zerocopy::TryFromBytes,
875
+ Y: ::zerocopy::TryFromBytes,
876
+ PhantomData<&'a [(X, Y); N]>: ::zerocopy::TryFromBytes,
877
+ ::zerocopy::util::macro_util::core_reexport::marker::PhantomData<
878
+ ComplexWithGenerics<'a, N, X, Y>,
879
+ >: ::zerocopy::TryFromBytes,
880
+ {
881
+ fn only_derive_is_allowed_to_implement_this_trait() {}
882
+ fn is_bit_valid(
883
+ mut candidate: ::zerocopy::Maybe<Self>,
884
+ ) -> ::zerocopy::util::macro_util::core_reexport::primitive::bool {
885
+ true
886
+ && {
887
+ let field_candidate = ::zerocopy::into_inner!(
888
+ candidate.reborrow().project:: < _, {
889
+ ::zerocopy::STRUCT_VARIANT_ID }, { ::zerocopy::ident_id!(0)
890
+ } > ()
891
+ );
892
+ <::zerocopy::util::macro_util::core_reexport::mem::MaybeUninit<
893
+ ___ZerocopyInnerTag,
894
+ > as ::zerocopy::TryFromBytes>::is_bit_valid(
895
+ field_candidate,
896
+ )
897
+ }
898
+ && {
899
+ let field_candidate = ::zerocopy::into_inner!(
900
+ candidate.reborrow().project:: < _, {
901
+ ::zerocopy::STRUCT_VARIANT_ID }, { ::zerocopy::ident_id!(1)
902
+ } > ()
903
+ );
904
+ <bool as ::zerocopy::TryFromBytes>::is_bit_valid(
905
+ field_candidate,
906
+ )
907
+ }
908
+ && {
909
+ let field_candidate = ::zerocopy::into_inner!(
910
+ candidate.reborrow().project:: < _, {
911
+ ::zerocopy::STRUCT_VARIANT_ID }, { ::zerocopy::ident_id!(2)
912
+ } > ()
913
+ );
914
+ <Y as ::zerocopy::TryFromBytes>::is_bit_valid(
915
+ field_candidate,
916
+ )
917
+ }
918
+ && {
919
+ let field_candidate = ::zerocopy::into_inner!(
920
+ candidate.reborrow().project:: < _, {
921
+ ::zerocopy::STRUCT_VARIANT_ID }, { ::zerocopy::ident_id!(3)
922
+ } > ()
923
+ );
924
+ <PhantomData<
925
+ &'a [(X, Y); N],
926
+ > as ::zerocopy::TryFromBytes>::is_bit_valid(
927
+ field_candidate,
928
+ )
929
+ }
930
+ && {
931
+ let field_candidate = ::zerocopy::into_inner!(
932
+ candidate.reborrow().project:: < _, {
933
+ ::zerocopy::STRUCT_VARIANT_ID }, { ::zerocopy::ident_id!(4)
934
+ } > ()
935
+ );
936
+ <::zerocopy::util::macro_util::core_reexport::marker::PhantomData<
937
+ ComplexWithGenerics<'a, N, X, Y>,
938
+ > as ::zerocopy::TryFromBytes>::is_bit_valid(
939
+ field_candidate,
940
+ )
941
+ }
942
+ }
943
+ }
944
+ #[allow(
945
+ deprecated,
946
+ private_bounds,
947
+ non_local_definitions,
948
+ non_camel_case_types,
949
+ non_upper_case_globals,
950
+ non_snake_case,
951
+ non_ascii_idents,
952
+ clippy::missing_inline_in_public_items,
953
+ )]
954
+ #[deny(ambiguous_associated_items)]
955
+ #[automatically_derived]
956
+ const _: () = {
957
+ enum ẕ0 {}
958
+ enum ẕ1 {}
959
+ enum ẕ2 {}
960
+ enum ẕ3 {}
961
+ enum ẕ4 {}
962
+ #[allow(
963
+ deprecated,
964
+ private_bounds,
965
+ non_local_definitions,
966
+ non_camel_case_types,
967
+ non_upper_case_globals,
968
+ non_snake_case,
969
+ non_ascii_idents,
970
+ clippy::missing_inline_in_public_items,
971
+ )]
972
+ #[deny(ambiguous_associated_items)]
973
+ #[automatically_derived]
974
+ const _: () = {
975
+ unsafe impl<
976
+ 'a: 'static,
977
+ X,
978
+ Y: Deref,
979
+ const N: usize,
980
+ > ::zerocopy::HasTag
981
+ for ___ZerocopyVariantStruct_TupleLike<'a, { N }, X, Y>
982
+ where
983
+ X: Deref<Target = &'a [(X, Y); N]>,
984
+ {
985
+ fn only_derive_is_allowed_to_implement_this_trait() {}
986
+ type Tag = ();
987
+ type ProjectToTag = ::zerocopy::pointer::cast::CastToUnit;
988
+ }
989
+ };
990
+ #[allow(
991
+ deprecated,
992
+ private_bounds,
993
+ non_local_definitions,
994
+ non_camel_case_types,
995
+ non_upper_case_globals,
996
+ non_snake_case,
997
+ non_ascii_idents,
998
+ clippy::missing_inline_in_public_items,
999
+ )]
1000
+ #[deny(ambiguous_associated_items)]
1001
+ #[automatically_derived]
1002
+ const _: () = {
1003
+ unsafe impl<
1004
+ 'a: 'static,
1005
+ X,
1006
+ Y: Deref,
1007
+ const N: usize,
1008
+ > ::zerocopy::HasField<
1009
+ ẕ0,
1010
+ { ::zerocopy::STRUCT_VARIANT_ID },
1011
+ { ::zerocopy::ident_id!(0) },
1012
+ > for ___ZerocopyVariantStruct_TupleLike<'a, { N }, X, Y>
1013
+ where
1014
+ X: Deref<Target = &'a [(X, Y); N]>,
1015
+ {
1016
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1017
+ type Type = ::zerocopy::util::macro_util::core_reexport::mem::MaybeUninit<
1018
+ ___ZerocopyInnerTag,
1019
+ >;
1020
+ #[inline(always)]
1021
+ fn project(
1022
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
1023
+ ) -> *mut <Self as ::zerocopy::HasField<
1024
+ ẕ0,
1025
+ { ::zerocopy::STRUCT_VARIANT_ID },
1026
+ { ::zerocopy::ident_id!(0) },
1027
+ >>::Type {
1028
+ let slf = slf.as_ptr();
1029
+ unsafe {
1030
+ ::zerocopy::util::macro_util::core_reexport::ptr::addr_of_mut!(
1031
+ (* slf).0
1032
+ )
1033
+ }
1034
+ }
1035
+ }
1036
+ #[allow(
1037
+ deprecated,
1038
+ private_bounds,
1039
+ non_local_definitions,
1040
+ non_camel_case_types,
1041
+ non_upper_case_globals,
1042
+ non_snake_case,
1043
+ non_ascii_idents,
1044
+ clippy::missing_inline_in_public_items,
1045
+ )]
1046
+ #[deny(ambiguous_associated_items)]
1047
+ #[automatically_derived]
1048
+ const _: () = {
1049
+ unsafe impl<
1050
+ 'a: 'static,
1051
+ X,
1052
+ Y: Deref,
1053
+ Aliasing: ::zerocopy::invariant::Aliasing,
1054
+ Alignment: ::zerocopy::invariant::Alignment,
1055
+ const N: usize,
1056
+ > ::zerocopy::ProjectField<
1057
+ ẕ0,
1058
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
1059
+ { ::zerocopy::STRUCT_VARIANT_ID },
1060
+ { ::zerocopy::ident_id!(0) },
1061
+ > for ___ZerocopyVariantStruct_TupleLike<'a, { N }, X, Y>
1062
+ where
1063
+ X: Deref<Target = &'a [(X, Y); N]>,
1064
+ {
1065
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1066
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
1067
+ type Invariants = (
1068
+ Aliasing,
1069
+ Alignment,
1070
+ ::zerocopy::invariant::Initialized,
1071
+ );
1072
+ }
1073
+ };
1074
+ };
1075
+ #[allow(
1076
+ deprecated,
1077
+ private_bounds,
1078
+ non_local_definitions,
1079
+ non_camel_case_types,
1080
+ non_upper_case_globals,
1081
+ non_snake_case,
1082
+ non_ascii_idents,
1083
+ clippy::missing_inline_in_public_items,
1084
+ )]
1085
+ #[deny(ambiguous_associated_items)]
1086
+ #[automatically_derived]
1087
+ const _: () = {
1088
+ unsafe impl<
1089
+ 'a: 'static,
1090
+ X,
1091
+ Y: Deref,
1092
+ const N: usize,
1093
+ > ::zerocopy::HasField<
1094
+ ẕ1,
1095
+ { ::zerocopy::STRUCT_VARIANT_ID },
1096
+ { ::zerocopy::ident_id!(1) },
1097
+ > for ___ZerocopyVariantStruct_TupleLike<'a, { N }, X, Y>
1098
+ where
1099
+ X: Deref<Target = &'a [(X, Y); N]>,
1100
+ {
1101
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1102
+ type Type = bool;
1103
+ #[inline(always)]
1104
+ fn project(
1105
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
1106
+ ) -> *mut <Self as ::zerocopy::HasField<
1107
+ ẕ1,
1108
+ { ::zerocopy::STRUCT_VARIANT_ID },
1109
+ { ::zerocopy::ident_id!(1) },
1110
+ >>::Type {
1111
+ let slf = slf.as_ptr();
1112
+ unsafe {
1113
+ ::zerocopy::util::macro_util::core_reexport::ptr::addr_of_mut!(
1114
+ (* slf).1
1115
+ )
1116
+ }
1117
+ }
1118
+ }
1119
+ #[allow(
1120
+ deprecated,
1121
+ private_bounds,
1122
+ non_local_definitions,
1123
+ non_camel_case_types,
1124
+ non_upper_case_globals,
1125
+ non_snake_case,
1126
+ non_ascii_idents,
1127
+ clippy::missing_inline_in_public_items,
1128
+ )]
1129
+ #[deny(ambiguous_associated_items)]
1130
+ #[automatically_derived]
1131
+ const _: () = {
1132
+ unsafe impl<
1133
+ 'a: 'static,
1134
+ X,
1135
+ Y: Deref,
1136
+ Aliasing: ::zerocopy::invariant::Aliasing,
1137
+ Alignment: ::zerocopy::invariant::Alignment,
1138
+ const N: usize,
1139
+ > ::zerocopy::ProjectField<
1140
+ ẕ1,
1141
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
1142
+ { ::zerocopy::STRUCT_VARIANT_ID },
1143
+ { ::zerocopy::ident_id!(1) },
1144
+ > for ___ZerocopyVariantStruct_TupleLike<'a, { N }, X, Y>
1145
+ where
1146
+ X: Deref<Target = &'a [(X, Y); N]>,
1147
+ {
1148
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1149
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
1150
+ type Invariants = (
1151
+ Aliasing,
1152
+ Alignment,
1153
+ ::zerocopy::invariant::Initialized,
1154
+ );
1155
+ }
1156
+ };
1157
+ };
1158
+ #[allow(
1159
+ deprecated,
1160
+ private_bounds,
1161
+ non_local_definitions,
1162
+ non_camel_case_types,
1163
+ non_upper_case_globals,
1164
+ non_snake_case,
1165
+ non_ascii_idents,
1166
+ clippy::missing_inline_in_public_items,
1167
+ )]
1168
+ #[deny(ambiguous_associated_items)]
1169
+ #[automatically_derived]
1170
+ const _: () = {
1171
+ unsafe impl<
1172
+ 'a: 'static,
1173
+ X,
1174
+ Y: Deref,
1175
+ const N: usize,
1176
+ > ::zerocopy::HasField<
1177
+ ẕ2,
1178
+ { ::zerocopy::STRUCT_VARIANT_ID },
1179
+ { ::zerocopy::ident_id!(2) },
1180
+ > for ___ZerocopyVariantStruct_TupleLike<'a, { N }, X, Y>
1181
+ where
1182
+ X: Deref<Target = &'a [(X, Y); N]>,
1183
+ {
1184
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1185
+ type Type = Y;
1186
+ #[inline(always)]
1187
+ fn project(
1188
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
1189
+ ) -> *mut <Self as ::zerocopy::HasField<
1190
+ ẕ2,
1191
+ { ::zerocopy::STRUCT_VARIANT_ID },
1192
+ { ::zerocopy::ident_id!(2) },
1193
+ >>::Type {
1194
+ let slf = slf.as_ptr();
1195
+ unsafe {
1196
+ ::zerocopy::util::macro_util::core_reexport::ptr::addr_of_mut!(
1197
+ (* slf).2
1198
+ )
1199
+ }
1200
+ }
1201
+ }
1202
+ #[allow(
1203
+ deprecated,
1204
+ private_bounds,
1205
+ non_local_definitions,
1206
+ non_camel_case_types,
1207
+ non_upper_case_globals,
1208
+ non_snake_case,
1209
+ non_ascii_idents,
1210
+ clippy::missing_inline_in_public_items,
1211
+ )]
1212
+ #[deny(ambiguous_associated_items)]
1213
+ #[automatically_derived]
1214
+ const _: () = {
1215
+ unsafe impl<
1216
+ 'a: 'static,
1217
+ X,
1218
+ Y: Deref,
1219
+ Aliasing: ::zerocopy::invariant::Aliasing,
1220
+ Alignment: ::zerocopy::invariant::Alignment,
1221
+ const N: usize,
1222
+ > ::zerocopy::ProjectField<
1223
+ ẕ2,
1224
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
1225
+ { ::zerocopy::STRUCT_VARIANT_ID },
1226
+ { ::zerocopy::ident_id!(2) },
1227
+ > for ___ZerocopyVariantStruct_TupleLike<'a, { N }, X, Y>
1228
+ where
1229
+ X: Deref<Target = &'a [(X, Y); N]>,
1230
+ {
1231
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1232
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
1233
+ type Invariants = (
1234
+ Aliasing,
1235
+ Alignment,
1236
+ ::zerocopy::invariant::Initialized,
1237
+ );
1238
+ }
1239
+ };
1240
+ };
1241
+ #[allow(
1242
+ deprecated,
1243
+ private_bounds,
1244
+ non_local_definitions,
1245
+ non_camel_case_types,
1246
+ non_upper_case_globals,
1247
+ non_snake_case,
1248
+ non_ascii_idents,
1249
+ clippy::missing_inline_in_public_items,
1250
+ )]
1251
+ #[deny(ambiguous_associated_items)]
1252
+ #[automatically_derived]
1253
+ const _: () = {
1254
+ unsafe impl<
1255
+ 'a: 'static,
1256
+ X,
1257
+ Y: Deref,
1258
+ const N: usize,
1259
+ > ::zerocopy::HasField<
1260
+ ẕ3,
1261
+ { ::zerocopy::STRUCT_VARIANT_ID },
1262
+ { ::zerocopy::ident_id!(3) },
1263
+ > for ___ZerocopyVariantStruct_TupleLike<'a, { N }, X, Y>
1264
+ where
1265
+ X: Deref<Target = &'a [(X, Y); N]>,
1266
+ {
1267
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1268
+ type Type = PhantomData<&'a [(X, Y); N]>;
1269
+ #[inline(always)]
1270
+ fn project(
1271
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
1272
+ ) -> *mut <Self as ::zerocopy::HasField<
1273
+ ẕ3,
1274
+ { ::zerocopy::STRUCT_VARIANT_ID },
1275
+ { ::zerocopy::ident_id!(3) },
1276
+ >>::Type {
1277
+ let slf = slf.as_ptr();
1278
+ unsafe {
1279
+ ::zerocopy::util::macro_util::core_reexport::ptr::addr_of_mut!(
1280
+ (* slf).3
1281
+ )
1282
+ }
1283
+ }
1284
+ }
1285
+ #[allow(
1286
+ deprecated,
1287
+ private_bounds,
1288
+ non_local_definitions,
1289
+ non_camel_case_types,
1290
+ non_upper_case_globals,
1291
+ non_snake_case,
1292
+ non_ascii_idents,
1293
+ clippy::missing_inline_in_public_items,
1294
+ )]
1295
+ #[deny(ambiguous_associated_items)]
1296
+ #[automatically_derived]
1297
+ const _: () = {
1298
+ unsafe impl<
1299
+ 'a: 'static,
1300
+ X,
1301
+ Y: Deref,
1302
+ Aliasing: ::zerocopy::invariant::Aliasing,
1303
+ Alignment: ::zerocopy::invariant::Alignment,
1304
+ const N: usize,
1305
+ > ::zerocopy::ProjectField<
1306
+ ẕ3,
1307
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
1308
+ { ::zerocopy::STRUCT_VARIANT_ID },
1309
+ { ::zerocopy::ident_id!(3) },
1310
+ > for ___ZerocopyVariantStruct_TupleLike<'a, { N }, X, Y>
1311
+ where
1312
+ X: Deref<Target = &'a [(X, Y); N]>,
1313
+ {
1314
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1315
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
1316
+ type Invariants = (
1317
+ Aliasing,
1318
+ Alignment,
1319
+ ::zerocopy::invariant::Initialized,
1320
+ );
1321
+ }
1322
+ };
1323
+ };
1324
+ #[allow(
1325
+ deprecated,
1326
+ private_bounds,
1327
+ non_local_definitions,
1328
+ non_camel_case_types,
1329
+ non_upper_case_globals,
1330
+ non_snake_case,
1331
+ non_ascii_idents,
1332
+ clippy::missing_inline_in_public_items,
1333
+ )]
1334
+ #[deny(ambiguous_associated_items)]
1335
+ #[automatically_derived]
1336
+ const _: () = {
1337
+ unsafe impl<
1338
+ 'a: 'static,
1339
+ X,
1340
+ Y: Deref,
1341
+ const N: usize,
1342
+ > ::zerocopy::HasField<
1343
+ ẕ4,
1344
+ { ::zerocopy::STRUCT_VARIANT_ID },
1345
+ { ::zerocopy::ident_id!(4) },
1346
+ > for ___ZerocopyVariantStruct_TupleLike<'a, { N }, X, Y>
1347
+ where
1348
+ X: Deref<Target = &'a [(X, Y); N]>,
1349
+ {
1350
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1351
+ type Type = ::zerocopy::util::macro_util::core_reexport::marker::PhantomData<
1352
+ ComplexWithGenerics<'a, N, X, Y>,
1353
+ >;
1354
+ #[inline(always)]
1355
+ fn project(
1356
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
1357
+ ) -> *mut <Self as ::zerocopy::HasField<
1358
+ ẕ4,
1359
+ { ::zerocopy::STRUCT_VARIANT_ID },
1360
+ { ::zerocopy::ident_id!(4) },
1361
+ >>::Type {
1362
+ let slf = slf.as_ptr();
1363
+ unsafe {
1364
+ ::zerocopy::util::macro_util::core_reexport::ptr::addr_of_mut!(
1365
+ (* slf).4
1366
+ )
1367
+ }
1368
+ }
1369
+ }
1370
+ #[allow(
1371
+ deprecated,
1372
+ private_bounds,
1373
+ non_local_definitions,
1374
+ non_camel_case_types,
1375
+ non_upper_case_globals,
1376
+ non_snake_case,
1377
+ non_ascii_idents,
1378
+ clippy::missing_inline_in_public_items,
1379
+ )]
1380
+ #[deny(ambiguous_associated_items)]
1381
+ #[automatically_derived]
1382
+ const _: () = {
1383
+ unsafe impl<
1384
+ 'a: 'static,
1385
+ X,
1386
+ Y: Deref,
1387
+ Aliasing: ::zerocopy::invariant::Aliasing,
1388
+ Alignment: ::zerocopy::invariant::Alignment,
1389
+ const N: usize,
1390
+ > ::zerocopy::ProjectField<
1391
+ ẕ4,
1392
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
1393
+ { ::zerocopy::STRUCT_VARIANT_ID },
1394
+ { ::zerocopy::ident_id!(4) },
1395
+ > for ___ZerocopyVariantStruct_TupleLike<'a, { N }, X, Y>
1396
+ where
1397
+ X: Deref<Target = &'a [(X, Y); N]>,
1398
+ {
1399
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1400
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
1401
+ type Invariants = (
1402
+ Aliasing,
1403
+ Alignment,
1404
+ ::zerocopy::invariant::Initialized,
1405
+ );
1406
+ }
1407
+ };
1408
+ };
1409
+ };
1410
+ };
1411
+ #[repr(C)]
1412
+ union ___ZerocopyVariants<'a: 'static, const N: usize, X, Y: Deref> {
1413
+ __field_StructLike: ::zerocopy::util::macro_util::core_reexport::mem::ManuallyDrop<
1414
+ ___ZerocopyVariantStruct_StructLike<'a, N, X, Y>,
1415
+ >,
1416
+ __field_TupleLike: ::zerocopy::util::macro_util::core_reexport::mem::ManuallyDrop<
1417
+ ___ZerocopyVariantStruct_TupleLike<'a, N, X, Y>,
1418
+ >,
1419
+ __nonempty: (),
1420
+ }
1421
+ #[allow(
1422
+ deprecated,
1423
+ private_bounds,
1424
+ non_local_definitions,
1425
+ non_camel_case_types,
1426
+ non_upper_case_globals,
1427
+ non_snake_case,
1428
+ non_ascii_idents,
1429
+ clippy::missing_inline_in_public_items,
1430
+ )]
1431
+ #[deny(ambiguous_associated_items)]
1432
+ #[automatically_derived]
1433
+ const _: () = {
1434
+ enum ẕ__field_StructLike {}
1435
+ enum ẕ__field_TupleLike {}
1436
+ enum ẕ__nonempty {}
1437
+ #[allow(
1438
+ deprecated,
1439
+ private_bounds,
1440
+ non_local_definitions,
1441
+ non_camel_case_types,
1442
+ non_upper_case_globals,
1443
+ non_snake_case,
1444
+ non_ascii_idents,
1445
+ clippy::missing_inline_in_public_items,
1446
+ )]
1447
+ #[deny(ambiguous_associated_items)]
1448
+ #[automatically_derived]
1449
+ const _: () = {
1450
+ unsafe impl<
1451
+ 'a: 'static,
1452
+ X,
1453
+ Y: Deref,
1454
+ const N: usize,
1455
+ > ::zerocopy::HasTag for ___ZerocopyVariants<'a, { N }, X, Y> {
1456
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1457
+ type Tag = ();
1458
+ type ProjectToTag = ::zerocopy::pointer::cast::CastToUnit;
1459
+ }
1460
+ };
1461
+ #[allow(
1462
+ deprecated,
1463
+ private_bounds,
1464
+ non_local_definitions,
1465
+ non_camel_case_types,
1466
+ non_upper_case_globals,
1467
+ non_snake_case,
1468
+ non_ascii_idents,
1469
+ clippy::missing_inline_in_public_items,
1470
+ )]
1471
+ #[deny(ambiguous_associated_items)]
1472
+ #[automatically_derived]
1473
+ const _: () = {
1474
+ unsafe impl<
1475
+ 'a: 'static,
1476
+ X,
1477
+ Y: Deref,
1478
+ const N: usize,
1479
+ > ::zerocopy::HasField<
1480
+ ẕ__field_StructLike,
1481
+ { ::zerocopy::REPR_C_UNION_VARIANT_ID },
1482
+ { ::zerocopy::ident_id!(__field_StructLike) },
1483
+ > for ___ZerocopyVariants<'a, { N }, X, Y> {
1484
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1485
+ type Type = ::zerocopy::util::macro_util::core_reexport::mem::ManuallyDrop<
1486
+ ___ZerocopyVariantStruct_StructLike<'a, N, X, Y>,
1487
+ >;
1488
+ #[inline(always)]
1489
+ fn project(
1490
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
1491
+ ) -> *mut <Self as ::zerocopy::HasField<
1492
+ ẕ__field_StructLike,
1493
+ { ::zerocopy::REPR_C_UNION_VARIANT_ID },
1494
+ { ::zerocopy::ident_id!(__field_StructLike) },
1495
+ >>::Type {
1496
+ let slf = slf.as_ptr();
1497
+ unsafe {
1498
+ ::zerocopy::util::macro_util::core_reexport::ptr::addr_of_mut!(
1499
+ (* slf).__field_StructLike
1500
+ )
1501
+ }
1502
+ }
1503
+ }
1504
+ };
1505
+ #[allow(
1506
+ deprecated,
1507
+ private_bounds,
1508
+ non_local_definitions,
1509
+ non_camel_case_types,
1510
+ non_upper_case_globals,
1511
+ non_snake_case,
1512
+ non_ascii_idents,
1513
+ clippy::missing_inline_in_public_items,
1514
+ )]
1515
+ #[deny(ambiguous_associated_items)]
1516
+ #[automatically_derived]
1517
+ const _: () = {
1518
+ unsafe impl<
1519
+ 'a: 'static,
1520
+ X,
1521
+ Y: Deref,
1522
+ const N: usize,
1523
+ > ::zerocopy::HasField<
1524
+ ẕ__field_TupleLike,
1525
+ { ::zerocopy::REPR_C_UNION_VARIANT_ID },
1526
+ { ::zerocopy::ident_id!(__field_TupleLike) },
1527
+ > for ___ZerocopyVariants<'a, { N }, X, Y> {
1528
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1529
+ type Type = ::zerocopy::util::macro_util::core_reexport::mem::ManuallyDrop<
1530
+ ___ZerocopyVariantStruct_TupleLike<'a, N, X, Y>,
1531
+ >;
1532
+ #[inline(always)]
1533
+ fn project(
1534
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
1535
+ ) -> *mut <Self as ::zerocopy::HasField<
1536
+ ẕ__field_TupleLike,
1537
+ { ::zerocopy::REPR_C_UNION_VARIANT_ID },
1538
+ { ::zerocopy::ident_id!(__field_TupleLike) },
1539
+ >>::Type {
1540
+ let slf = slf.as_ptr();
1541
+ unsafe {
1542
+ ::zerocopy::util::macro_util::core_reexport::ptr::addr_of_mut!(
1543
+ (* slf).__field_TupleLike
1544
+ )
1545
+ }
1546
+ }
1547
+ }
1548
+ };
1549
+ #[allow(
1550
+ deprecated,
1551
+ private_bounds,
1552
+ non_local_definitions,
1553
+ non_camel_case_types,
1554
+ non_upper_case_globals,
1555
+ non_snake_case,
1556
+ non_ascii_idents,
1557
+ clippy::missing_inline_in_public_items,
1558
+ )]
1559
+ #[deny(ambiguous_associated_items)]
1560
+ #[automatically_derived]
1561
+ const _: () = {
1562
+ unsafe impl<
1563
+ 'a: 'static,
1564
+ X,
1565
+ Y: Deref,
1566
+ const N: usize,
1567
+ > ::zerocopy::HasField<
1568
+ ẕ__nonempty,
1569
+ { ::zerocopy::REPR_C_UNION_VARIANT_ID },
1570
+ { ::zerocopy::ident_id!(__nonempty) },
1571
+ > for ___ZerocopyVariants<'a, { N }, X, Y> {
1572
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1573
+ type Type = ();
1574
+ #[inline(always)]
1575
+ fn project(
1576
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
1577
+ ) -> *mut <Self as ::zerocopy::HasField<
1578
+ ẕ__nonempty,
1579
+ { ::zerocopy::REPR_C_UNION_VARIANT_ID },
1580
+ { ::zerocopy::ident_id!(__nonempty) },
1581
+ >>::Type {
1582
+ let slf = slf.as_ptr();
1583
+ unsafe {
1584
+ ::zerocopy::util::macro_util::core_reexport::ptr::addr_of_mut!(
1585
+ (* slf).__nonempty
1586
+ )
1587
+ }
1588
+ }
1589
+ }
1590
+ };
1591
+ };
1592
+ #[repr(C)]
1593
+ struct ___ZerocopyRawEnum<'a: 'static, const N: usize, X, Y: Deref> {
1594
+ tag: ___ZerocopyOuterTag,
1595
+ variants: ___ZerocopyVariants<'a, N, X, Y>,
1596
+ }
1597
+ unsafe impl<
1598
+ 'a: 'static,
1599
+ const N: usize,
1600
+ X,
1601
+ Y: Deref,
1602
+ > ::zerocopy::pointer::InvariantsEq<___ZerocopyRawEnum<'a, N, X, Y>>
1603
+ for ComplexWithGenerics<'a, N, X, Y>
1604
+ where
1605
+ X: Deref<Target = &'a [(X, Y); N]>,
1606
+ {}
1607
+ #[allow(
1608
+ deprecated,
1609
+ private_bounds,
1610
+ non_local_definitions,
1611
+ non_camel_case_types,
1612
+ non_upper_case_globals,
1613
+ non_snake_case,
1614
+ non_ascii_idents,
1615
+ clippy::missing_inline_in_public_items,
1616
+ )]
1617
+ #[deny(ambiguous_associated_items)]
1618
+ #[automatically_derived]
1619
+ const _: () = {
1620
+ enum ẕtag {}
1621
+ enum ẕvariants {}
1622
+ #[allow(
1623
+ deprecated,
1624
+ private_bounds,
1625
+ non_local_definitions,
1626
+ non_camel_case_types,
1627
+ non_upper_case_globals,
1628
+ non_snake_case,
1629
+ non_ascii_idents,
1630
+ clippy::missing_inline_in_public_items,
1631
+ )]
1632
+ #[deny(ambiguous_associated_items)]
1633
+ #[automatically_derived]
1634
+ const _: () = {
1635
+ unsafe impl<
1636
+ 'a: 'static,
1637
+ X,
1638
+ Y: Deref,
1639
+ const N: usize,
1640
+ > ::zerocopy::HasTag for ___ZerocopyRawEnum<'a, { N }, X, Y> {
1641
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1642
+ type Tag = ();
1643
+ type ProjectToTag = ::zerocopy::pointer::cast::CastToUnit;
1644
+ }
1645
+ };
1646
+ #[allow(
1647
+ deprecated,
1648
+ private_bounds,
1649
+ non_local_definitions,
1650
+ non_camel_case_types,
1651
+ non_upper_case_globals,
1652
+ non_snake_case,
1653
+ non_ascii_idents,
1654
+ clippy::missing_inline_in_public_items,
1655
+ )]
1656
+ #[deny(ambiguous_associated_items)]
1657
+ #[automatically_derived]
1658
+ const _: () = {
1659
+ unsafe impl<
1660
+ 'a: 'static,
1661
+ X,
1662
+ Y: Deref,
1663
+ const N: usize,
1664
+ > ::zerocopy::HasField<
1665
+ ẕtag,
1666
+ { ::zerocopy::STRUCT_VARIANT_ID },
1667
+ { ::zerocopy::ident_id!(tag) },
1668
+ > for ___ZerocopyRawEnum<'a, { N }, X, Y> {
1669
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1670
+ type Type = ___ZerocopyOuterTag;
1671
+ #[inline(always)]
1672
+ fn project(
1673
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
1674
+ ) -> *mut <Self as ::zerocopy::HasField<
1675
+ ẕtag,
1676
+ { ::zerocopy::STRUCT_VARIANT_ID },
1677
+ { ::zerocopy::ident_id!(tag) },
1678
+ >>::Type {
1679
+ let slf = slf.as_ptr();
1680
+ unsafe {
1681
+ ::zerocopy::util::macro_util::core_reexport::ptr::addr_of_mut!(
1682
+ (* slf).tag
1683
+ )
1684
+ }
1685
+ }
1686
+ }
1687
+ #[allow(
1688
+ deprecated,
1689
+ private_bounds,
1690
+ non_local_definitions,
1691
+ non_camel_case_types,
1692
+ non_upper_case_globals,
1693
+ non_snake_case,
1694
+ non_ascii_idents,
1695
+ clippy::missing_inline_in_public_items,
1696
+ )]
1697
+ #[deny(ambiguous_associated_items)]
1698
+ #[automatically_derived]
1699
+ const _: () = {
1700
+ unsafe impl<
1701
+ 'a: 'static,
1702
+ X,
1703
+ Y: Deref,
1704
+ Aliasing: ::zerocopy::invariant::Aliasing,
1705
+ Alignment: ::zerocopy::invariant::Alignment,
1706
+ const N: usize,
1707
+ > ::zerocopy::ProjectField<
1708
+ ẕtag,
1709
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
1710
+ { ::zerocopy::STRUCT_VARIANT_ID },
1711
+ { ::zerocopy::ident_id!(tag) },
1712
+ > for ___ZerocopyRawEnum<'a, { N }, X, Y> {
1713
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1714
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
1715
+ type Invariants = (
1716
+ Aliasing,
1717
+ Alignment,
1718
+ ::zerocopy::invariant::Initialized,
1719
+ );
1720
+ }
1721
+ };
1722
+ };
1723
+ #[allow(
1724
+ deprecated,
1725
+ private_bounds,
1726
+ non_local_definitions,
1727
+ non_camel_case_types,
1728
+ non_upper_case_globals,
1729
+ non_snake_case,
1730
+ non_ascii_idents,
1731
+ clippy::missing_inline_in_public_items,
1732
+ )]
1733
+ #[deny(ambiguous_associated_items)]
1734
+ #[automatically_derived]
1735
+ const _: () = {
1736
+ unsafe impl<
1737
+ 'a: 'static,
1738
+ X,
1739
+ Y: Deref,
1740
+ const N: usize,
1741
+ > ::zerocopy::HasField<
1742
+ ẕvariants,
1743
+ { ::zerocopy::STRUCT_VARIANT_ID },
1744
+ { ::zerocopy::ident_id!(variants) },
1745
+ > for ___ZerocopyRawEnum<'a, { N }, X, Y> {
1746
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1747
+ type Type = ___ZerocopyVariants<'a, N, X, Y>;
1748
+ #[inline(always)]
1749
+ fn project(
1750
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
1751
+ ) -> *mut <Self as ::zerocopy::HasField<
1752
+ ẕvariants,
1753
+ { ::zerocopy::STRUCT_VARIANT_ID },
1754
+ { ::zerocopy::ident_id!(variants) },
1755
+ >>::Type {
1756
+ let slf = slf.as_ptr();
1757
+ unsafe {
1758
+ ::zerocopy::util::macro_util::core_reexport::ptr::addr_of_mut!(
1759
+ (* slf).variants
1760
+ )
1761
+ }
1762
+ }
1763
+ }
1764
+ #[allow(
1765
+ deprecated,
1766
+ private_bounds,
1767
+ non_local_definitions,
1768
+ non_camel_case_types,
1769
+ non_upper_case_globals,
1770
+ non_snake_case,
1771
+ non_ascii_idents,
1772
+ clippy::missing_inline_in_public_items,
1773
+ )]
1774
+ #[deny(ambiguous_associated_items)]
1775
+ #[automatically_derived]
1776
+ const _: () = {
1777
+ unsafe impl<
1778
+ 'a: 'static,
1779
+ X,
1780
+ Y: Deref,
1781
+ Aliasing: ::zerocopy::invariant::Aliasing,
1782
+ Alignment: ::zerocopy::invariant::Alignment,
1783
+ const N: usize,
1784
+ > ::zerocopy::ProjectField<
1785
+ ẕvariants,
1786
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
1787
+ { ::zerocopy::STRUCT_VARIANT_ID },
1788
+ { ::zerocopy::ident_id!(variants) },
1789
+ > for ___ZerocopyRawEnum<'a, { N }, X, Y> {
1790
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1791
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
1792
+ type Invariants = (
1793
+ Aliasing,
1794
+ Alignment,
1795
+ ::zerocopy::invariant::Initialized,
1796
+ );
1797
+ }
1798
+ };
1799
+ };
1800
+ };
1801
+ #[allow(
1802
+ deprecated,
1803
+ private_bounds,
1804
+ non_local_definitions,
1805
+ non_camel_case_types,
1806
+ non_upper_case_globals,
1807
+ non_snake_case,
1808
+ non_ascii_idents,
1809
+ clippy::missing_inline_in_public_items,
1810
+ )]
1811
+ #[deny(ambiguous_associated_items)]
1812
+ #[automatically_derived]
1813
+ const _: () = {
1814
+ unsafe impl<'a: 'static, X, Y: Deref, const N: usize> ::zerocopy::HasTag
1815
+ for ComplexWithGenerics<'a, { N }, X, Y>
1816
+ where
1817
+ X: Deref<Target = &'a [(X, Y); N]>,
1818
+ {
1819
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1820
+ type Tag = ___ZerocopyTag;
1821
+ type ProjectToTag = ::zerocopy::pointer::cast::CastSized;
1822
+ }
1823
+ };
1824
+ #[allow(
1825
+ deprecated,
1826
+ private_bounds,
1827
+ non_local_definitions,
1828
+ non_camel_case_types,
1829
+ non_upper_case_globals,
1830
+ non_snake_case,
1831
+ non_ascii_idents,
1832
+ clippy::missing_inline_in_public_items,
1833
+ )]
1834
+ #[deny(ambiguous_associated_items)]
1835
+ #[automatically_derived]
1836
+ const _: () = {
1837
+ unsafe impl<
1838
+ 'a: 'static,
1839
+ X,
1840
+ Y: Deref,
1841
+ const N: usize,
1842
+ > ::zerocopy::HasField<
1843
+ (),
1844
+ { ::zerocopy::ident_id!(StructLike) },
1845
+ { ::zerocopy::ident_id!(a) },
1846
+ > for ComplexWithGenerics<'a, { N }, X, Y>
1847
+ where
1848
+ X: Deref<Target = &'a [(X, Y); N]>,
1849
+ {
1850
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1851
+ type Type = u8;
1852
+ #[inline(always)]
1853
+ fn project(
1854
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
1855
+ ) -> *mut <Self as ::zerocopy::HasField<
1856
+ (),
1857
+ { ::zerocopy::ident_id!(StructLike) },
1858
+ { ::zerocopy::ident_id!(a) },
1859
+ >>::Type {
1860
+ use ::zerocopy::pointer::cast::{CastSized, Projection};
1861
+ slf.project::<___ZerocopyRawEnum<'a, N, X, Y>, CastSized>()
1862
+ .project::<
1863
+ _,
1864
+ Projection<
1865
+ _,
1866
+ { ::zerocopy::STRUCT_VARIANT_ID },
1867
+ { ::zerocopy::ident_id!(variants) },
1868
+ >,
1869
+ >()
1870
+ .project::<
1871
+ _,
1872
+ Projection<
1873
+ _,
1874
+ { ::zerocopy::REPR_C_UNION_VARIANT_ID },
1875
+ { ::zerocopy::ident_id!(__field_StructLike) },
1876
+ >,
1877
+ >()
1878
+ .project::<
1879
+ _,
1880
+ Projection<
1881
+ _,
1882
+ { ::zerocopy::STRUCT_VARIANT_ID },
1883
+ { ::zerocopy::ident_id!(value) },
1884
+ >,
1885
+ >()
1886
+ .project::<
1887
+ _,
1888
+ Projection<
1889
+ _,
1890
+ { ::zerocopy::STRUCT_VARIANT_ID },
1891
+ { ::zerocopy::ident_id!(1) },
1892
+ >,
1893
+ >()
1894
+ .as_ptr()
1895
+ }
1896
+ }
1897
+ };
1898
+ #[allow(
1899
+ deprecated,
1900
+ private_bounds,
1901
+ non_local_definitions,
1902
+ non_camel_case_types,
1903
+ non_upper_case_globals,
1904
+ non_snake_case,
1905
+ non_ascii_idents,
1906
+ clippy::missing_inline_in_public_items,
1907
+ )]
1908
+ #[deny(ambiguous_associated_items)]
1909
+ #[automatically_derived]
1910
+ const _: () = {
1911
+ unsafe impl<
1912
+ 'a: 'static,
1913
+ X,
1914
+ Y: Deref,
1915
+ Aliasing: ::zerocopy::invariant::Aliasing,
1916
+ Alignment: ::zerocopy::invariant::Alignment,
1917
+ const N: usize,
1918
+ > ::zerocopy::ProjectField<
1919
+ (),
1920
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
1921
+ { ::zerocopy::ident_id!(StructLike) },
1922
+ { ::zerocopy::ident_id!(a) },
1923
+ > for ComplexWithGenerics<'a, { N }, X, Y>
1924
+ where
1925
+ X: Deref<Target = &'a [(X, Y); N]>,
1926
+ {
1927
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1928
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
1929
+ type Invariants = (
1930
+ Aliasing,
1931
+ Alignment,
1932
+ ::zerocopy::invariant::Initialized,
1933
+ );
1934
+ }
1935
+ };
1936
+ #[allow(
1937
+ deprecated,
1938
+ private_bounds,
1939
+ non_local_definitions,
1940
+ non_camel_case_types,
1941
+ non_upper_case_globals,
1942
+ non_snake_case,
1943
+ non_ascii_idents,
1944
+ clippy::missing_inline_in_public_items,
1945
+ )]
1946
+ #[deny(ambiguous_associated_items)]
1947
+ #[automatically_derived]
1948
+ const _: () = {
1949
+ unsafe impl<
1950
+ 'a: 'static,
1951
+ X,
1952
+ Y: Deref,
1953
+ const N: usize,
1954
+ > ::zerocopy::HasField<
1955
+ (),
1956
+ { ::zerocopy::ident_id!(StructLike) },
1957
+ { ::zerocopy::ident_id!(b) },
1958
+ > for ComplexWithGenerics<'a, { N }, X, Y>
1959
+ where
1960
+ X: Deref<Target = &'a [(X, Y); N]>,
1961
+ {
1962
+ fn only_derive_is_allowed_to_implement_this_trait() {}
1963
+ type Type = X;
1964
+ #[inline(always)]
1965
+ fn project(
1966
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
1967
+ ) -> *mut <Self as ::zerocopy::HasField<
1968
+ (),
1969
+ { ::zerocopy::ident_id!(StructLike) },
1970
+ { ::zerocopy::ident_id!(b) },
1971
+ >>::Type {
1972
+ use ::zerocopy::pointer::cast::{CastSized, Projection};
1973
+ slf.project::<___ZerocopyRawEnum<'a, N, X, Y>, CastSized>()
1974
+ .project::<
1975
+ _,
1976
+ Projection<
1977
+ _,
1978
+ { ::zerocopy::STRUCT_VARIANT_ID },
1979
+ { ::zerocopy::ident_id!(variants) },
1980
+ >,
1981
+ >()
1982
+ .project::<
1983
+ _,
1984
+ Projection<
1985
+ _,
1986
+ { ::zerocopy::REPR_C_UNION_VARIANT_ID },
1987
+ { ::zerocopy::ident_id!(__field_StructLike) },
1988
+ >,
1989
+ >()
1990
+ .project::<
1991
+ _,
1992
+ Projection<
1993
+ _,
1994
+ { ::zerocopy::STRUCT_VARIANT_ID },
1995
+ { ::zerocopy::ident_id!(value) },
1996
+ >,
1997
+ >()
1998
+ .project::<
1999
+ _,
2000
+ Projection<
2001
+ _,
2002
+ { ::zerocopy::STRUCT_VARIANT_ID },
2003
+ { ::zerocopy::ident_id!(2) },
2004
+ >,
2005
+ >()
2006
+ .as_ptr()
2007
+ }
2008
+ }
2009
+ };
2010
+ #[allow(
2011
+ deprecated,
2012
+ private_bounds,
2013
+ non_local_definitions,
2014
+ non_camel_case_types,
2015
+ non_upper_case_globals,
2016
+ non_snake_case,
2017
+ non_ascii_idents,
2018
+ clippy::missing_inline_in_public_items,
2019
+ )]
2020
+ #[deny(ambiguous_associated_items)]
2021
+ #[automatically_derived]
2022
+ const _: () = {
2023
+ unsafe impl<
2024
+ 'a: 'static,
2025
+ X,
2026
+ Y: Deref,
2027
+ Aliasing: ::zerocopy::invariant::Aliasing,
2028
+ Alignment: ::zerocopy::invariant::Alignment,
2029
+ const N: usize,
2030
+ > ::zerocopy::ProjectField<
2031
+ (),
2032
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
2033
+ { ::zerocopy::ident_id!(StructLike) },
2034
+ { ::zerocopy::ident_id!(b) },
2035
+ > for ComplexWithGenerics<'a, { N }, X, Y>
2036
+ where
2037
+ X: Deref<Target = &'a [(X, Y); N]>,
2038
+ {
2039
+ fn only_derive_is_allowed_to_implement_this_trait() {}
2040
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
2041
+ type Invariants = (
2042
+ Aliasing,
2043
+ Alignment,
2044
+ ::zerocopy::invariant::Initialized,
2045
+ );
2046
+ }
2047
+ };
2048
+ #[allow(
2049
+ deprecated,
2050
+ private_bounds,
2051
+ non_local_definitions,
2052
+ non_camel_case_types,
2053
+ non_upper_case_globals,
2054
+ non_snake_case,
2055
+ non_ascii_idents,
2056
+ clippy::missing_inline_in_public_items,
2057
+ )]
2058
+ #[deny(ambiguous_associated_items)]
2059
+ #[automatically_derived]
2060
+ const _: () = {
2061
+ unsafe impl<
2062
+ 'a: 'static,
2063
+ X,
2064
+ Y: Deref,
2065
+ const N: usize,
2066
+ > ::zerocopy::HasField<
2067
+ (),
2068
+ { ::zerocopy::ident_id!(StructLike) },
2069
+ { ::zerocopy::ident_id!(c) },
2070
+ > for ComplexWithGenerics<'a, { N }, X, Y>
2071
+ where
2072
+ X: Deref<Target = &'a [(X, Y); N]>,
2073
+ {
2074
+ fn only_derive_is_allowed_to_implement_this_trait() {}
2075
+ type Type = X::Target;
2076
+ #[inline(always)]
2077
+ fn project(
2078
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
2079
+ ) -> *mut <Self as ::zerocopy::HasField<
2080
+ (),
2081
+ { ::zerocopy::ident_id!(StructLike) },
2082
+ { ::zerocopy::ident_id!(c) },
2083
+ >>::Type {
2084
+ use ::zerocopy::pointer::cast::{CastSized, Projection};
2085
+ slf.project::<___ZerocopyRawEnum<'a, N, X, Y>, CastSized>()
2086
+ .project::<
2087
+ _,
2088
+ Projection<
2089
+ _,
2090
+ { ::zerocopy::STRUCT_VARIANT_ID },
2091
+ { ::zerocopy::ident_id!(variants) },
2092
+ >,
2093
+ >()
2094
+ .project::<
2095
+ _,
2096
+ Projection<
2097
+ _,
2098
+ { ::zerocopy::REPR_C_UNION_VARIANT_ID },
2099
+ { ::zerocopy::ident_id!(__field_StructLike) },
2100
+ >,
2101
+ >()
2102
+ .project::<
2103
+ _,
2104
+ Projection<
2105
+ _,
2106
+ { ::zerocopy::STRUCT_VARIANT_ID },
2107
+ { ::zerocopy::ident_id!(value) },
2108
+ >,
2109
+ >()
2110
+ .project::<
2111
+ _,
2112
+ Projection<
2113
+ _,
2114
+ { ::zerocopy::STRUCT_VARIANT_ID },
2115
+ { ::zerocopy::ident_id!(3) },
2116
+ >,
2117
+ >()
2118
+ .as_ptr()
2119
+ }
2120
+ }
2121
+ };
2122
+ #[allow(
2123
+ deprecated,
2124
+ private_bounds,
2125
+ non_local_definitions,
2126
+ non_camel_case_types,
2127
+ non_upper_case_globals,
2128
+ non_snake_case,
2129
+ non_ascii_idents,
2130
+ clippy::missing_inline_in_public_items,
2131
+ )]
2132
+ #[deny(ambiguous_associated_items)]
2133
+ #[automatically_derived]
2134
+ const _: () = {
2135
+ unsafe impl<
2136
+ 'a: 'static,
2137
+ X,
2138
+ Y: Deref,
2139
+ Aliasing: ::zerocopy::invariant::Aliasing,
2140
+ Alignment: ::zerocopy::invariant::Alignment,
2141
+ const N: usize,
2142
+ > ::zerocopy::ProjectField<
2143
+ (),
2144
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
2145
+ { ::zerocopy::ident_id!(StructLike) },
2146
+ { ::zerocopy::ident_id!(c) },
2147
+ > for ComplexWithGenerics<'a, { N }, X, Y>
2148
+ where
2149
+ X: Deref<Target = &'a [(X, Y); N]>,
2150
+ {
2151
+ fn only_derive_is_allowed_to_implement_this_trait() {}
2152
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
2153
+ type Invariants = (
2154
+ Aliasing,
2155
+ Alignment,
2156
+ ::zerocopy::invariant::Initialized,
2157
+ );
2158
+ }
2159
+ };
2160
+ #[allow(
2161
+ deprecated,
2162
+ private_bounds,
2163
+ non_local_definitions,
2164
+ non_camel_case_types,
2165
+ non_upper_case_globals,
2166
+ non_snake_case,
2167
+ non_ascii_idents,
2168
+ clippy::missing_inline_in_public_items,
2169
+ )]
2170
+ #[deny(ambiguous_associated_items)]
2171
+ #[automatically_derived]
2172
+ const _: () = {
2173
+ unsafe impl<
2174
+ 'a: 'static,
2175
+ X,
2176
+ Y: Deref,
2177
+ const N: usize,
2178
+ > ::zerocopy::HasField<
2179
+ (),
2180
+ { ::zerocopy::ident_id!(StructLike) },
2181
+ { ::zerocopy::ident_id!(d) },
2182
+ > for ComplexWithGenerics<'a, { N }, X, Y>
2183
+ where
2184
+ X: Deref<Target = &'a [(X, Y); N]>,
2185
+ {
2186
+ fn only_derive_is_allowed_to_implement_this_trait() {}
2187
+ type Type = Y::Target;
2188
+ #[inline(always)]
2189
+ fn project(
2190
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
2191
+ ) -> *mut <Self as ::zerocopy::HasField<
2192
+ (),
2193
+ { ::zerocopy::ident_id!(StructLike) },
2194
+ { ::zerocopy::ident_id!(d) },
2195
+ >>::Type {
2196
+ use ::zerocopy::pointer::cast::{CastSized, Projection};
2197
+ slf.project::<___ZerocopyRawEnum<'a, N, X, Y>, CastSized>()
2198
+ .project::<
2199
+ _,
2200
+ Projection<
2201
+ _,
2202
+ { ::zerocopy::STRUCT_VARIANT_ID },
2203
+ { ::zerocopy::ident_id!(variants) },
2204
+ >,
2205
+ >()
2206
+ .project::<
2207
+ _,
2208
+ Projection<
2209
+ _,
2210
+ { ::zerocopy::REPR_C_UNION_VARIANT_ID },
2211
+ { ::zerocopy::ident_id!(__field_StructLike) },
2212
+ >,
2213
+ >()
2214
+ .project::<
2215
+ _,
2216
+ Projection<
2217
+ _,
2218
+ { ::zerocopy::STRUCT_VARIANT_ID },
2219
+ { ::zerocopy::ident_id!(value) },
2220
+ >,
2221
+ >()
2222
+ .project::<
2223
+ _,
2224
+ Projection<
2225
+ _,
2226
+ { ::zerocopy::STRUCT_VARIANT_ID },
2227
+ { ::zerocopy::ident_id!(4) },
2228
+ >,
2229
+ >()
2230
+ .as_ptr()
2231
+ }
2232
+ }
2233
+ };
2234
+ #[allow(
2235
+ deprecated,
2236
+ private_bounds,
2237
+ non_local_definitions,
2238
+ non_camel_case_types,
2239
+ non_upper_case_globals,
2240
+ non_snake_case,
2241
+ non_ascii_idents,
2242
+ clippy::missing_inline_in_public_items,
2243
+ )]
2244
+ #[deny(ambiguous_associated_items)]
2245
+ #[automatically_derived]
2246
+ const _: () = {
2247
+ unsafe impl<
2248
+ 'a: 'static,
2249
+ X,
2250
+ Y: Deref,
2251
+ Aliasing: ::zerocopy::invariant::Aliasing,
2252
+ Alignment: ::zerocopy::invariant::Alignment,
2253
+ const N: usize,
2254
+ > ::zerocopy::ProjectField<
2255
+ (),
2256
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
2257
+ { ::zerocopy::ident_id!(StructLike) },
2258
+ { ::zerocopy::ident_id!(d) },
2259
+ > for ComplexWithGenerics<'a, { N }, X, Y>
2260
+ where
2261
+ X: Deref<Target = &'a [(X, Y); N]>,
2262
+ {
2263
+ fn only_derive_is_allowed_to_implement_this_trait() {}
2264
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
2265
+ type Invariants = (
2266
+ Aliasing,
2267
+ Alignment,
2268
+ ::zerocopy::invariant::Initialized,
2269
+ );
2270
+ }
2271
+ };
2272
+ #[allow(
2273
+ deprecated,
2274
+ private_bounds,
2275
+ non_local_definitions,
2276
+ non_camel_case_types,
2277
+ non_upper_case_globals,
2278
+ non_snake_case,
2279
+ non_ascii_idents,
2280
+ clippy::missing_inline_in_public_items,
2281
+ )]
2282
+ #[deny(ambiguous_associated_items)]
2283
+ #[automatically_derived]
2284
+ const _: () = {
2285
+ unsafe impl<
2286
+ 'a: 'static,
2287
+ X,
2288
+ Y: Deref,
2289
+ const N: usize,
2290
+ > ::zerocopy::HasField<
2291
+ (),
2292
+ { ::zerocopy::ident_id!(StructLike) },
2293
+ { ::zerocopy::ident_id!(e) },
2294
+ > for ComplexWithGenerics<'a, { N }, X, Y>
2295
+ where
2296
+ X: Deref<Target = &'a [(X, Y); N]>,
2297
+ {
2298
+ fn only_derive_is_allowed_to_implement_this_trait() {}
2299
+ type Type = [(X, Y); N];
2300
+ #[inline(always)]
2301
+ fn project(
2302
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
2303
+ ) -> *mut <Self as ::zerocopy::HasField<
2304
+ (),
2305
+ { ::zerocopy::ident_id!(StructLike) },
2306
+ { ::zerocopy::ident_id!(e) },
2307
+ >>::Type {
2308
+ use ::zerocopy::pointer::cast::{CastSized, Projection};
2309
+ slf.project::<___ZerocopyRawEnum<'a, N, X, Y>, CastSized>()
2310
+ .project::<
2311
+ _,
2312
+ Projection<
2313
+ _,
2314
+ { ::zerocopy::STRUCT_VARIANT_ID },
2315
+ { ::zerocopy::ident_id!(variants) },
2316
+ >,
2317
+ >()
2318
+ .project::<
2319
+ _,
2320
+ Projection<
2321
+ _,
2322
+ { ::zerocopy::REPR_C_UNION_VARIANT_ID },
2323
+ { ::zerocopy::ident_id!(__field_StructLike) },
2324
+ >,
2325
+ >()
2326
+ .project::<
2327
+ _,
2328
+ Projection<
2329
+ _,
2330
+ { ::zerocopy::STRUCT_VARIANT_ID },
2331
+ { ::zerocopy::ident_id!(value) },
2332
+ >,
2333
+ >()
2334
+ .project::<
2335
+ _,
2336
+ Projection<
2337
+ _,
2338
+ { ::zerocopy::STRUCT_VARIANT_ID },
2339
+ { ::zerocopy::ident_id!(5) },
2340
+ >,
2341
+ >()
2342
+ .as_ptr()
2343
+ }
2344
+ }
2345
+ };
2346
+ #[allow(
2347
+ deprecated,
2348
+ private_bounds,
2349
+ non_local_definitions,
2350
+ non_camel_case_types,
2351
+ non_upper_case_globals,
2352
+ non_snake_case,
2353
+ non_ascii_idents,
2354
+ clippy::missing_inline_in_public_items,
2355
+ )]
2356
+ #[deny(ambiguous_associated_items)]
2357
+ #[automatically_derived]
2358
+ const _: () = {
2359
+ unsafe impl<
2360
+ 'a: 'static,
2361
+ X,
2362
+ Y: Deref,
2363
+ Aliasing: ::zerocopy::invariant::Aliasing,
2364
+ Alignment: ::zerocopy::invariant::Alignment,
2365
+ const N: usize,
2366
+ > ::zerocopy::ProjectField<
2367
+ (),
2368
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
2369
+ { ::zerocopy::ident_id!(StructLike) },
2370
+ { ::zerocopy::ident_id!(e) },
2371
+ > for ComplexWithGenerics<'a, { N }, X, Y>
2372
+ where
2373
+ X: Deref<Target = &'a [(X, Y); N]>,
2374
+ {
2375
+ fn only_derive_is_allowed_to_implement_this_trait() {}
2376
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
2377
+ type Invariants = (
2378
+ Aliasing,
2379
+ Alignment,
2380
+ ::zerocopy::invariant::Initialized,
2381
+ );
2382
+ }
2383
+ };
2384
+ #[allow(
2385
+ deprecated,
2386
+ private_bounds,
2387
+ non_local_definitions,
2388
+ non_camel_case_types,
2389
+ non_upper_case_globals,
2390
+ non_snake_case,
2391
+ non_ascii_idents,
2392
+ clippy::missing_inline_in_public_items,
2393
+ )]
2394
+ #[deny(ambiguous_associated_items)]
2395
+ #[automatically_derived]
2396
+ const _: () = {
2397
+ unsafe impl<
2398
+ 'a: 'static,
2399
+ X,
2400
+ Y: Deref,
2401
+ const N: usize,
2402
+ > ::zerocopy::HasField<
2403
+ (),
2404
+ { ::zerocopy::ident_id!(TupleLike) },
2405
+ { ::zerocopy::ident_id!(0) },
2406
+ > for ComplexWithGenerics<'a, { N }, X, Y>
2407
+ where
2408
+ X: Deref<Target = &'a [(X, Y); N]>,
2409
+ {
2410
+ fn only_derive_is_allowed_to_implement_this_trait() {}
2411
+ type Type = bool;
2412
+ #[inline(always)]
2413
+ fn project(
2414
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
2415
+ ) -> *mut <Self as ::zerocopy::HasField<
2416
+ (),
2417
+ { ::zerocopy::ident_id!(TupleLike) },
2418
+ { ::zerocopy::ident_id!(0) },
2419
+ >>::Type {
2420
+ use ::zerocopy::pointer::cast::{CastSized, Projection};
2421
+ slf.project::<___ZerocopyRawEnum<'a, N, X, Y>, CastSized>()
2422
+ .project::<
2423
+ _,
2424
+ Projection<
2425
+ _,
2426
+ { ::zerocopy::STRUCT_VARIANT_ID },
2427
+ { ::zerocopy::ident_id!(variants) },
2428
+ >,
2429
+ >()
2430
+ .project::<
2431
+ _,
2432
+ Projection<
2433
+ _,
2434
+ { ::zerocopy::REPR_C_UNION_VARIANT_ID },
2435
+ { ::zerocopy::ident_id!(__field_TupleLike) },
2436
+ >,
2437
+ >()
2438
+ .project::<
2439
+ _,
2440
+ Projection<
2441
+ _,
2442
+ { ::zerocopy::STRUCT_VARIANT_ID },
2443
+ { ::zerocopy::ident_id!(value) },
2444
+ >,
2445
+ >()
2446
+ .project::<
2447
+ _,
2448
+ Projection<
2449
+ _,
2450
+ { ::zerocopy::STRUCT_VARIANT_ID },
2451
+ { ::zerocopy::ident_id!(1) },
2452
+ >,
2453
+ >()
2454
+ .as_ptr()
2455
+ }
2456
+ }
2457
+ };
2458
+ #[allow(
2459
+ deprecated,
2460
+ private_bounds,
2461
+ non_local_definitions,
2462
+ non_camel_case_types,
2463
+ non_upper_case_globals,
2464
+ non_snake_case,
2465
+ non_ascii_idents,
2466
+ clippy::missing_inline_in_public_items,
2467
+ )]
2468
+ #[deny(ambiguous_associated_items)]
2469
+ #[automatically_derived]
2470
+ const _: () = {
2471
+ unsafe impl<
2472
+ 'a: 'static,
2473
+ X,
2474
+ Y: Deref,
2475
+ Aliasing: ::zerocopy::invariant::Aliasing,
2476
+ Alignment: ::zerocopy::invariant::Alignment,
2477
+ const N: usize,
2478
+ > ::zerocopy::ProjectField<
2479
+ (),
2480
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
2481
+ { ::zerocopy::ident_id!(TupleLike) },
2482
+ { ::zerocopy::ident_id!(0) },
2483
+ > for ComplexWithGenerics<'a, { N }, X, Y>
2484
+ where
2485
+ X: Deref<Target = &'a [(X, Y); N]>,
2486
+ {
2487
+ fn only_derive_is_allowed_to_implement_this_trait() {}
2488
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
2489
+ type Invariants = (
2490
+ Aliasing,
2491
+ Alignment,
2492
+ ::zerocopy::invariant::Initialized,
2493
+ );
2494
+ }
2495
+ };
2496
+ #[allow(
2497
+ deprecated,
2498
+ private_bounds,
2499
+ non_local_definitions,
2500
+ non_camel_case_types,
2501
+ non_upper_case_globals,
2502
+ non_snake_case,
2503
+ non_ascii_idents,
2504
+ clippy::missing_inline_in_public_items,
2505
+ )]
2506
+ #[deny(ambiguous_associated_items)]
2507
+ #[automatically_derived]
2508
+ const _: () = {
2509
+ unsafe impl<
2510
+ 'a: 'static,
2511
+ X,
2512
+ Y: Deref,
2513
+ const N: usize,
2514
+ > ::zerocopy::HasField<
2515
+ (),
2516
+ { ::zerocopy::ident_id!(TupleLike) },
2517
+ { ::zerocopy::ident_id!(1) },
2518
+ > for ComplexWithGenerics<'a, { N }, X, Y>
2519
+ where
2520
+ X: Deref<Target = &'a [(X, Y); N]>,
2521
+ {
2522
+ fn only_derive_is_allowed_to_implement_this_trait() {}
2523
+ type Type = Y;
2524
+ #[inline(always)]
2525
+ fn project(
2526
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
2527
+ ) -> *mut <Self as ::zerocopy::HasField<
2528
+ (),
2529
+ { ::zerocopy::ident_id!(TupleLike) },
2530
+ { ::zerocopy::ident_id!(1) },
2531
+ >>::Type {
2532
+ use ::zerocopy::pointer::cast::{CastSized, Projection};
2533
+ slf.project::<___ZerocopyRawEnum<'a, N, X, Y>, CastSized>()
2534
+ .project::<
2535
+ _,
2536
+ Projection<
2537
+ _,
2538
+ { ::zerocopy::STRUCT_VARIANT_ID },
2539
+ { ::zerocopy::ident_id!(variants) },
2540
+ >,
2541
+ >()
2542
+ .project::<
2543
+ _,
2544
+ Projection<
2545
+ _,
2546
+ { ::zerocopy::REPR_C_UNION_VARIANT_ID },
2547
+ { ::zerocopy::ident_id!(__field_TupleLike) },
2548
+ >,
2549
+ >()
2550
+ .project::<
2551
+ _,
2552
+ Projection<
2553
+ _,
2554
+ { ::zerocopy::STRUCT_VARIANT_ID },
2555
+ { ::zerocopy::ident_id!(value) },
2556
+ >,
2557
+ >()
2558
+ .project::<
2559
+ _,
2560
+ Projection<
2561
+ _,
2562
+ { ::zerocopy::STRUCT_VARIANT_ID },
2563
+ { ::zerocopy::ident_id!(2) },
2564
+ >,
2565
+ >()
2566
+ .as_ptr()
2567
+ }
2568
+ }
2569
+ };
2570
+ #[allow(
2571
+ deprecated,
2572
+ private_bounds,
2573
+ non_local_definitions,
2574
+ non_camel_case_types,
2575
+ non_upper_case_globals,
2576
+ non_snake_case,
2577
+ non_ascii_idents,
2578
+ clippy::missing_inline_in_public_items,
2579
+ )]
2580
+ #[deny(ambiguous_associated_items)]
2581
+ #[automatically_derived]
2582
+ const _: () = {
2583
+ unsafe impl<
2584
+ 'a: 'static,
2585
+ X,
2586
+ Y: Deref,
2587
+ Aliasing: ::zerocopy::invariant::Aliasing,
2588
+ Alignment: ::zerocopy::invariant::Alignment,
2589
+ const N: usize,
2590
+ > ::zerocopy::ProjectField<
2591
+ (),
2592
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
2593
+ { ::zerocopy::ident_id!(TupleLike) },
2594
+ { ::zerocopy::ident_id!(1) },
2595
+ > for ComplexWithGenerics<'a, { N }, X, Y>
2596
+ where
2597
+ X: Deref<Target = &'a [(X, Y); N]>,
2598
+ {
2599
+ fn only_derive_is_allowed_to_implement_this_trait() {}
2600
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
2601
+ type Invariants = (
2602
+ Aliasing,
2603
+ Alignment,
2604
+ ::zerocopy::invariant::Initialized,
2605
+ );
2606
+ }
2607
+ };
2608
+ #[allow(
2609
+ deprecated,
2610
+ private_bounds,
2611
+ non_local_definitions,
2612
+ non_camel_case_types,
2613
+ non_upper_case_globals,
2614
+ non_snake_case,
2615
+ non_ascii_idents,
2616
+ clippy::missing_inline_in_public_items,
2617
+ )]
2618
+ #[deny(ambiguous_associated_items)]
2619
+ #[automatically_derived]
2620
+ const _: () = {
2621
+ unsafe impl<
2622
+ 'a: 'static,
2623
+ X,
2624
+ Y: Deref,
2625
+ const N: usize,
2626
+ > ::zerocopy::HasField<
2627
+ (),
2628
+ { ::zerocopy::ident_id!(TupleLike) },
2629
+ { ::zerocopy::ident_id!(2) },
2630
+ > for ComplexWithGenerics<'a, { N }, X, Y>
2631
+ where
2632
+ X: Deref<Target = &'a [(X, Y); N]>,
2633
+ {
2634
+ fn only_derive_is_allowed_to_implement_this_trait() {}
2635
+ type Type = PhantomData<&'a [(X, Y); N]>;
2636
+ #[inline(always)]
2637
+ fn project(
2638
+ slf: ::zerocopy::pointer::PtrInner<'_, Self>,
2639
+ ) -> *mut <Self as ::zerocopy::HasField<
2640
+ (),
2641
+ { ::zerocopy::ident_id!(TupleLike) },
2642
+ { ::zerocopy::ident_id!(2) },
2643
+ >>::Type {
2644
+ use ::zerocopy::pointer::cast::{CastSized, Projection};
2645
+ slf.project::<___ZerocopyRawEnum<'a, N, X, Y>, CastSized>()
2646
+ .project::<
2647
+ _,
2648
+ Projection<
2649
+ _,
2650
+ { ::zerocopy::STRUCT_VARIANT_ID },
2651
+ { ::zerocopy::ident_id!(variants) },
2652
+ >,
2653
+ >()
2654
+ .project::<
2655
+ _,
2656
+ Projection<
2657
+ _,
2658
+ { ::zerocopy::REPR_C_UNION_VARIANT_ID },
2659
+ { ::zerocopy::ident_id!(__field_TupleLike) },
2660
+ >,
2661
+ >()
2662
+ .project::<
2663
+ _,
2664
+ Projection<
2665
+ _,
2666
+ { ::zerocopy::STRUCT_VARIANT_ID },
2667
+ { ::zerocopy::ident_id!(value) },
2668
+ >,
2669
+ >()
2670
+ .project::<
2671
+ _,
2672
+ Projection<
2673
+ _,
2674
+ { ::zerocopy::STRUCT_VARIANT_ID },
2675
+ { ::zerocopy::ident_id!(3) },
2676
+ >,
2677
+ >()
2678
+ .as_ptr()
2679
+ }
2680
+ }
2681
+ };
2682
+ #[allow(
2683
+ deprecated,
2684
+ private_bounds,
2685
+ non_local_definitions,
2686
+ non_camel_case_types,
2687
+ non_upper_case_globals,
2688
+ non_snake_case,
2689
+ non_ascii_idents,
2690
+ clippy::missing_inline_in_public_items,
2691
+ )]
2692
+ #[deny(ambiguous_associated_items)]
2693
+ #[automatically_derived]
2694
+ const _: () = {
2695
+ unsafe impl<
2696
+ 'a: 'static,
2697
+ X,
2698
+ Y: Deref,
2699
+ Aliasing: ::zerocopy::invariant::Aliasing,
2700
+ Alignment: ::zerocopy::invariant::Alignment,
2701
+ const N: usize,
2702
+ > ::zerocopy::ProjectField<
2703
+ (),
2704
+ (Aliasing, Alignment, ::zerocopy::invariant::Initialized),
2705
+ { ::zerocopy::ident_id!(TupleLike) },
2706
+ { ::zerocopy::ident_id!(2) },
2707
+ > for ComplexWithGenerics<'a, { N }, X, Y>
2708
+ where
2709
+ X: Deref<Target = &'a [(X, Y); N]>,
2710
+ {
2711
+ fn only_derive_is_allowed_to_implement_this_trait() {}
2712
+ type Error = ::zerocopy::util::macro_util::core_reexport::convert::Infallible;
2713
+ type Invariants = (
2714
+ Aliasing,
2715
+ Alignment,
2716
+ ::zerocopy::invariant::Initialized,
2717
+ );
2718
+ }
2719
+ };
2720
+ let tag = {
2721
+ let tag_ptr = unsafe {
2722
+ candidate
2723
+ .reborrow()
2724
+ .project_transmute_unchecked::<
2725
+ _,
2726
+ ::zerocopy::invariant::Initialized,
2727
+ ::zerocopy::pointer::cast::CastSized,
2728
+ >()
2729
+ };
2730
+ tag_ptr
2731
+ .recall_validity::<_, (_, (_, _))>()
2732
+ .read_unaligned::<::zerocopy::BecauseImmutable>()
2733
+ };
2734
+ let mut raw_enum = candidate
2735
+ .cast::<
2736
+ ::zerocopy::ReadOnly<___ZerocopyRawEnum<'a, N, X, Y>>,
2737
+ ::zerocopy::pointer::cast::CastSized,
2738
+ (::zerocopy::pointer::BecauseRead, _),
2739
+ >();
2740
+ let variants = ::zerocopy::into_inner!(
2741
+ raw_enum.project:: < _, { ::zerocopy::STRUCT_VARIANT_ID }, {
2742
+ ::zerocopy::ident_id!(variants) } > ()
2743
+ );
2744
+ match tag {
2745
+ ___ZEROCOPY_TAG_UnitLike => true,
2746
+ ___ZEROCOPY_TAG_StructLike => {
2747
+ let variant_md = variants
2748
+ .cast::<
2749
+ _,
2750
+ ::zerocopy::pointer::cast::Projection<
2751
+ _,
2752
+ { ::zerocopy::REPR_C_UNION_VARIANT_ID },
2753
+ { ::zerocopy::ident_id!(__field_StructLike) },
2754
+ >,
2755
+ _,
2756
+ >();
2757
+ let variant = variant_md
2758
+ .cast::<
2759
+ ::zerocopy::ReadOnly<
2760
+ ___ZerocopyVariantStruct_StructLike<'a, N, X, Y>,
2761
+ >,
2762
+ ::zerocopy::pointer::cast::CastSized,
2763
+ (::zerocopy::pointer::BecauseRead, _),
2764
+ >();
2765
+ <___ZerocopyVariantStruct_StructLike<
2766
+ 'a,
2767
+ N,
2768
+ X,
2769
+ Y,
2770
+ > as ::zerocopy::TryFromBytes>::is_bit_valid(variant)
2771
+ }
2772
+ ___ZEROCOPY_TAG_TupleLike => {
2773
+ let variant_md = variants
2774
+ .cast::<
2775
+ _,
2776
+ ::zerocopy::pointer::cast::Projection<
2777
+ _,
2778
+ { ::zerocopy::REPR_C_UNION_VARIANT_ID },
2779
+ { ::zerocopy::ident_id!(__field_TupleLike) },
2780
+ >,
2781
+ _,
2782
+ >();
2783
+ let variant = variant_md
2784
+ .cast::<
2785
+ ::zerocopy::ReadOnly<
2786
+ ___ZerocopyVariantStruct_TupleLike<'a, N, X, Y>,
2787
+ >,
2788
+ ::zerocopy::pointer::cast::CastSized,
2789
+ (::zerocopy::pointer::BecauseRead, _),
2790
+ >();
2791
+ <___ZerocopyVariantStruct_TupleLike<
2792
+ 'a,
2793
+ N,
2794
+ X,
2795
+ Y,
2796
+ > as ::zerocopy::TryFromBytes>::is_bit_valid(variant)
2797
+ }
2798
+ _ => false,
2799
+ }
2800
+ }
2801
+ }
2802
+ };