pub struct SkewHeap<T> { /* private fields */ }
Implementations§
source§impl<T: Ord> SkewHeap<T>
impl<T: Ord> SkewHeap<T>
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
pub fn peek(&self) -> Option<&T>
pub fn peek_mut(&mut self) -> Option<PeekMut<'_, T>>
pub fn push(&mut self, elem: T)
pub fn pop(&mut self) -> Option<T>
pub fn meld(&mut self, other: Self)
Trait Implementations§
source§impl<T: Ord> Extend<T> for SkewHeap<T>
impl<T: Ord> Extend<T> for SkewHeap<T>
source§fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl<T: Ord> FromIterator<T> for SkewHeap<T>
impl<T: Ord> FromIterator<T> for SkewHeap<T>
source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl<T> RefUnwindSafe for SkewHeap<T>where T: RefUnwindSafe,
impl<T> Send for SkewHeap<T>where T: Send,
impl<T> Sync for SkewHeap<T>where T: Sync,
impl<T> Unpin for SkewHeap<T>
impl<T> UnwindSafe for SkewHeap<T>where T: UnwindSafe,
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