rust-objc-id icon indicating copy to clipboard operation
rust-objc-id copied to clipboard

Allow Option<Id<T>> to use the null pointer optimization

Open SSheldon opened this issue 9 years ago • 0 comments

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>.

Doing this requires the NonZero struct, which is being stabilized with rust-lang/rust#27730.

SSheldon avatar Nov 07 '15 18:11 SSheldon