Private unsafe fields are a poorly motivated feature
Rust Internals [Unofficial]
February 5, 2026
tczajka:
Or should
valbe anunsafefield here, even though the module doesn't use it for memory safety?
As author of the module, you choose the safety invariant of the type. If "not zero" is part of the safety invariant, then the field should be unsafe. If it is just a "logic invariant" (like Ord contract), then it should not.
Discussion in the ATmosphere