pub struct BinHeap<K, V, ID = u32> { /* private fields */ }Expand description
Simply binary heap data structure.
Implementations§
Trait Implementations§
Source§impl<K, V, ID> ItemPriQueue<K, V> for BinHeap<K, V, ID>
impl<K, V, ID> ItemPriQueue<K, V> for BinHeap<K, V, ID>
Auto Trait Implementations§
impl<K, V, ID> Freeze for BinHeap<K, V, ID>where
ID: Freeze,
impl<K, V, ID> RefUnwindSafe for BinHeap<K, V, ID>
impl<K, V, ID> Send for BinHeap<K, V, ID>
impl<K, V, ID> Sync for BinHeap<K, V, ID>
impl<K, V, ID> Unpin for BinHeap<K, V, ID>
impl<K, V, ID> UnwindSafe for BinHeap<K, V, ID>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more