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

Add support for Objective-C generics and NSArray #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

visigoth
Copy link
Contributor

@visigoth visigoth commented Jan 10, 2021

This change first adds support for declaring rust counterparts for Objective-C
classes that include generics.

Second, the change adds NSArray as a motivating example and use case.

Unfortunately, this set of changes does not compile due to lifetime constraints
not being satisfied. I am looking for guidance on how to resolve the lifetime
issues. What is the appropriate lifetime relationship to represent between
objects stored in NSArray and NSArray's lifetime captured in the PhantomData of NSArray?
How should Arc wrap them when accessing objects?

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 this pull request may close these issues.

1 participant