Struct priority_container::PrioContainerMax
source · [−]pub struct PrioContainerMax<T> { /* private fields */ }
Expand description
Priority container storing max capacity
amount of items. Can be used to find
n
smallest items within an iterator or a set of items that implement Ord
Implementations
sourceimpl<T: Ord> PrioContainerMax<T>
impl<T: Ord> PrioContainerMax<T>
Trait Implementations
sourceimpl<T: Ord> Extend<T> for PrioContainerMax<T>
impl<T: Ord> Extend<T> for PrioContainerMax<T>
sourcefn 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
sourcefn 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.
sourcefn 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
sourceimpl<T: Ord> IntoIterator for PrioContainerMax<T>
impl<T: Ord> IntoIterator for PrioContainerMax<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for PrioContainerMax<T> where
T: RefUnwindSafe,
impl<T> Send for PrioContainerMax<T> where
T: Send,
impl<T> Sync for PrioContainerMax<T> where
T: Sync,
impl<T> Unpin for PrioContainerMax<T> where
T: Unpin,
impl<T> UnwindSafe for PrioContainerMax<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more