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

Several extensions to Heap<T>. #313

Merged
merged 4 commits into from Nov 14, 2016
Merged

Several extensions to Heap<T>. #313

merged 4 commits into from Nov 14, 2016

Conversation

@ejpbruel
Copy link
Contributor

ejpbruel commented Nov 10, 2016

This PR contains multiple extensions to Heap that should make it easier to work with.


This change is Reviewable

ejpbruel added 4 commits Nov 10, 2016
We should be able to create a default value for any Heap<*mut T> where *mut T implements
GCMethods<*mut T> and Copy, not just for Heap<*mut JSObject>.
Currently, to create a Heap<T>, one first has to create a Heap<T>::default, and then call
Heap<T>::set. This is a common pattern and therefore should be abstracted behind a method.
@bors-servo bors-servo merged commit 0766151 into servo:master Nov 14, 2016
1 check passed
1 check passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
@ejpbruel
Copy link
Contributor Author

ejpbruel commented Nov 14, 2016

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

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.