[−][src]Struct run_loop::binary_heap::BinaryHeap
Methods
impl<K, V: ?Sized> BinaryHeap<K, V>
[src]
pub fn new() -> BinaryHeap<K, V>
[src]
pub fn with_capacity(capacity: usize) -> BinaryHeap<K, V>
[src]
pub fn into_vec(self) -> Vec<NodePtr<K, V>>
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn len(&self) -> usize
[src]
pub fn clear<F: FnMut(NodePtr<K, V>)>(&mut self, f: F)
[src]
impl<K: Ord, V: ?Sized> BinaryHeap<K, V>
[src]
pub fn peek(&self) -> Option<&NodePtr<K, V>>
[src]
pub unsafe fn push(&mut self, item: NodePtr<K, V>)
[src]
pub unsafe fn pop(&mut self) -> Option<NodePtr<K, V>>
[src]
pub unsafe fn update(&mut self, item: NodePtr<K, V>, key: K)
[src]
pub unsafe fn remove(&mut self, index: usize) -> NodePtr<K, V>
[src]
Trait Implementations
Auto Trait Implementations
impl<K, V: ?Sized> RefUnwindSafe for BinaryHeap<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> !Send for BinaryHeap<K, V>
impl<K, V> !Sync for BinaryHeap<K, V>
impl<K, V: ?Sized> Unpin for BinaryHeap<K, V>
impl<K, V: ?Sized> UnwindSafe for BinaryHeap<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,