mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-28 04:50:34 +00:00
Implement Default for BinaryHeap
This commit is contained in:
parent
ad3ef1282d
commit
bc3616d0cb
@ -412,6 +412,17 @@ impl<'a, T> Drop for Hole<'a, T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T, N, K> Default for BinaryHeap<T, N, K>
|
||||
where
|
||||
T: Ord,
|
||||
N: ArrayLength<T>,
|
||||
K: Kind,
|
||||
{
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl<T, N, K> Clone for BinaryHeap<T, N, K>
|
||||
where
|
||||
N: ArrayLength<T>,
|
||||
|
Loading…
x
Reference in New Issue
Block a user