pub enum Medians<'a, T> {
Odd(&'a T),
Even((&'a T, &'a T)),
}
Expand description
Enum for results of odd/even medians of complex endtypes
Variants§
Odd(&'a T)
Odd sized data results in a single median
Even((&'a T, &'a T))
Even sized data results in a pair of (centered) medians
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Medians<'a, T>
impl<'a, T> RefUnwindSafe for Medians<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Medians<'a, T>where
T: Sync,
impl<'a, T> Sync for Medians<'a, T>where
T: Sync,
impl<'a, T> Unpin for Medians<'a, T>
impl<'a, T> UnwindSafe for Medians<'a, T>where
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
source§impl<T> Printing<T> for Twhere
T: Display,
impl<T> Printing<T> for Twhere
T: Display,
source§fn to_str(self) -> String
fn to_str(self) -> String
Method to serialize.
Decorates Vecs with square brackets and tuples with round ones.
Implementation code is in
printing.rs
.source§fn to_plainstr(self) -> String
fn to_plainstr(self) -> String
Method to serialize in minimal form (space separated, no brackets)
Implementation code is in
printing.rs
.