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

Guarantee that pointers to NSObjects can be encoded

Open SSheldon opened this issue 10 years ago • 1 comments

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.

SSheldon avatar May 16 '15 19:05 SSheldon

This will be helpful in verifying message arguments when SSheldon/rust-objc#10 is completed.

SSheldon avatar May 16 '15 19:05 SSheldon