I doubt that's part of the public API then. At best it's like using unsafe package in Java for instance. Not forbidden but prone to occasional breakage, and it's all on you to keep compatibility.
Related Topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Pre-RFC: Define the behavior of `repr(transparent)` when all fields are zero-sized types | 20 | 1239 | August 31, 2023 | |
Where is std::num::Saturating? (Going to pre-RFC!) | 51 | 3557 | February 14, 2021 | |
Random thought: #[repr(C++)]? | 8 | 1965 | March 25, 2019 | |
[Pre-RFC] Patterns allowing transparent wrapper types | 26 | 3182 | October 20, 2019 | |
Niche optimization makes use of niches, but padding bytes are neglected | 14 | 492 | July 24, 2024 |