We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, functions like INSArray's into_vec cannot be methods because they must consume an Id<Self>. For example, into_vec is currently written as:
INSArray
into_vec
Id<Self>
fn into_vec(array: Id<Self>) -> ...
This means it must be called as INSArray::into_vec(array). Ideally, it'd be nice to write this as:
INSArray::into_vec(array)
fn into_vec(self: Id<Self>) -> ...
Then it'd be possible to just call array.into_vec().
array.into_vec()
In the May 6th meetings notes, it was mentioned this was apparently possible in a patch at the time: https://github.com/rust-lang/meeting-minutes/blob/master/weekly-meetings/2014-05-06.md#boxself, but this functionality doesn't appear to have shipped.
The text was updated successfully, but these errors were encountered:
Moved to SSheldon/rust-objc-foundation#1.
Sorry, something went wrong.
Merge pull request SSheldon#9 from madsmtm/encode-unsized
ce6a1ef
Implement `Encode` for unsized types as well
No branches or pull requests
Currently, functions like
INSArray
'sinto_vec
cannot be methods because they must consume anId<Self>
. For example,into_vec
is currently written as:This means it must be called as
INSArray::into_vec(array)
. Ideally, it'd be nice to write this as:Then it'd be possible to just call
array.into_vec()
.In the May 6th meetings notes, it was mentioned this was apparently possible in a patch at the time: https://github.com/rust-lang/meeting-minutes/blob/master/weekly-meetings/2014-05-06.md#boxself, but this functionality doesn't appear to have shipped.
The text was updated successfully, but these errors were encountered: