pub struct Sort<T, F> { /* private fields */ }Expand description
This data structure tracks the n top values given a stream. It uses only O(n) space.
Implementations§
Trait Implementations§
Source§impl<T, F> AddAssign for Sort<T, F>
impl<T, F> AddAssign for Sort<T, F>
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl<'de, T, F> Deserialize<'de> for Sort<T, F>
impl<'de, T, F> Deserialize<'de> for Sort<T, F>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T, F> IntoIterator for Sort<T, F>
impl<T, F> IntoIterator for Sort<T, F>
Auto Trait Implementations§
impl<T, F> Freeze for Sort<T, F>where
F: Freeze,
impl<T, F> RefUnwindSafe for Sort<T, F>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F> Send for Sort<T, F>
impl<T, F> Sync for Sort<T, F>
impl<T, F> Unpin for Sort<T, F>where
F: Unpin,
impl<T, F> UnwindSafe for Sort<T, F>where
F: UnwindSafe,
T: RefUnwindSafe,
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