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