rust-objc-foundation
rust-objc-foundation copied to clipboard
Guarantee that pointers to NSObjects can be encoded
The EncodePtr trait used to exist for this, but it was removed in SSheldon/rust-objc#13.
This can be expressed with where clauses (where *mut Self: Encode, for <'a> &'a Self: Encode) but those bounds aren't propagated. This is blocked on rust-lang/rust#20671.
This will be helpful in verifying message arguments when SSheldon/rust-objc#10 is completed.