Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guarantee that pointers to NSObjects can be encoded #2

Open
SSheldon opened this issue May 16, 2015 · 1 comment · Fixed by madsmtm/objc2#14
Open

Guarantee that pointers to NSObjects can be encoded #2

SSheldon opened this issue May 16, 2015 · 1 comment · Fixed by madsmtm/objc2#14

Comments

@SSheldon
Copy link
Owner

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
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant