-
Notifications
You must be signed in to change notification settings - Fork 49
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
Consider moving objc2_foundation
into the objc2
crate
#39
Comments
Might also be relevant to move most of the implementation of It currently uses an But it also returns |
I think we may move the |
I asked on the forum whether this is possible, we'll see if someone comes up with something; otherwise people will just have to import |
There's a lot of places in
objc2_foundation
that would benefit from being able to implementFrom
for specificId
s:NSArray::from_vec
NSArray::into_vec
NSData::from_vec
NSDictionary::from_keys_and_objects
NSString::from_str
Same goes for traits like
Default
.But unfortunately, we can't create these implementations because
Id
is defined in another crate, see RFC 2451. I tried creating a helper traitFromId
for this purpose, but that doesn't work either:Though doing it for
Default
would:So possible solutions:
objc2_foundation
toobjc2::foundation
(under a feature flag)Id
toobjc2_foundation
?The text was updated successfully, but these errors were encountered: