We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Since Ids will never be null, the representation of Option<Id<T>> can take advantage of this to be the same size as an Id<T>.
Id
Option<Id<T>>
Id<T>
Doing this requires the NonZero struct, which is being stabilized with rust-lang/rust#27730.
NonZero
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Since
Id
s will never be null, the representation ofOption<Id<T>>
can take advantage of this to be the same size as anId<T>
.Doing this requires the
NonZero
struct, which is being stabilized with rust-lang/rust#27730.The text was updated successfully, but these errors were encountered: