pub enum NanMinMaxResult<T> {
MinMax(T, T),
OneElement(T),
NoElements,
NaN,
}Expand description
The result of a call to nanminmax.
Variants§
MinMax(T, T)
The iterator contains multiple distinct float; the minimum and maximum are returned.
OneElement(T)
The iterator contains exactly one distict float, after optionally ignoring NaNs.
NoElements
The iterator was empty, or was empty after ignoring NaNs.
NaN
The iterator contains at least one NaN value, and NaNs were not ignored.
This is unreachable if nanminmax was called with ignore_nans: true.
Trait Implementations§
Source§impl<T: Clone> Clone for NanMinMaxResult<T>
impl<T: Clone> Clone for NanMinMaxResult<T>
Source§fn clone(&self) -> NanMinMaxResult<T>
fn clone(&self) -> NanMinMaxResult<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for NanMinMaxResult<T>
impl<T: Debug> Debug for NanMinMaxResult<T>
Source§impl<T: PartialEq> PartialEq for NanMinMaxResult<T>
impl<T: PartialEq> PartialEq for NanMinMaxResult<T>
impl<T: Copy> Copy for NanMinMaxResult<T>
impl<T: Eq> Eq for NanMinMaxResult<T>
impl<T> StructuralPartialEq for NanMinMaxResult<T>
Auto Trait Implementations§
impl<T> Freeze for NanMinMaxResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for NanMinMaxResult<T>where
T: RefUnwindSafe,
impl<T> Send for NanMinMaxResult<T>where
T: Send,
impl<T> Sync for NanMinMaxResult<T>where
T: Sync,
impl<T> Unpin for NanMinMaxResult<T>where
T: Unpin,
impl<T> UnwindSafe for NanMinMaxResult<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