5 ms·
Wouldn't a data type with no safe method of construction satisfy that? You can only get one by calling an unsafe function & satisfying its constraints.
by dwattttt 11mo ago
Wouldn't a data type with no safe method of construction satisfy that? You can only get one by calling an unsafe function & satisfying its constraints.
- accelbred 11mo agoThat would be possible but also make its usage unergonomic and not the experience customers are expecting when requesting a Rust API.