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

Commits on Nov 10, 2016

  1. Add an implementation of Default for Heap<*mut T>.

    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>.
    ejpbruel committed Nov 10, 2016
  2. Add a method to create a Heap<T>.

    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.
    ejpbruel committed Nov 10, 2016
  3. Add an implementation of PartialEq for Heap<T>.

    ejpbruel committed Nov 10, 2016
You can’t perform that action at this time.