mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-10-01 14:30:33 +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>
|
impl<T, N, K> Clone for BinaryHeap<T, N, K>
|
||||||
where
|
where
|
||||||
N: ArrayLength<T>,
|
N: ArrayLength<T>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user