garro95 / priority-queue

A priority queue for Rust with efficient change function.
173 stars 29 forks source link

Remove Sized bound for some functions #32

Closed Johannesd3 closed 3 years ago

Johannesd3 commented 3 years ago

There are some methods with the type parameter Q such that I: Borrow<Q>. Some of these methods (change_priority(_by), get_priority) don't require Q to be sized, but all others do. Has it a particular reason?

If not, it would be nice if those functions could be update to Q: ?Sized.

Johannesd3 commented 3 years ago

Thanks for the quick reaction!