pub struct MinMax<T> { /* private fields */ }
Expand description
A commutative data structure for tracking minimum and maximum values.
This also stores the number of samples.
Implementations§
Source§impl<T: PartialOrd + Clone> MinMax<T>
impl<T: PartialOrd + Clone> MinMax<T>
Trait Implementations§
Source§impl<T: PartialOrd> Commute for MinMax<T>
impl<T: PartialOrd> Commute for MinMax<T>
Source§impl<T: PartialOrd> Default for MinMax<T>
impl<T: PartialOrd> Default for MinMax<T>
Source§impl<T: PartialOrd + Clone> Extend<T> for MinMax<T>
impl<T: PartialOrd + Clone> Extend<T> for MinMax<T>
Source§fn extend<I: IntoIterator<Item = T>>(&mut self, it: I)
fn extend<I: IntoIterator<Item = T>>(&mut self, it: 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: PartialOrd + Clone> FromIterator<T> for MinMax<T>
impl<T: PartialOrd + Clone> FromIterator<T> for MinMax<T>
Auto Trait Implementations§
impl<T> Freeze for MinMax<T>where
T: Freeze,
impl<T> RefUnwindSafe for MinMax<T>where
T: RefUnwindSafe,
impl<T> Send for MinMax<T>where
T: Send,
impl<T> Sync for MinMax<T>where
T: Sync,
impl<T> Unpin for MinMax<T>where
T: Unpin,
impl<T> UnwindSafe for MinMax<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)