Hi all,
I need to implement a generic priority queue (basically a simple wrapper around BinaryHeap) which sorts elements by time. So I made HasTime trait which the queue elements need to implement. The problem is that I would like to avoid implementing Ord trait as well for each type because it is always the same for all types which implement HasTime. According to discussion here [1] it seems that we can't define default cmp implementation for all types which implement HasTime. So, is there some better approach then writing a macro which implements Ord trait for all HasTime types?
Thanks in advance,
--alan