pub struct MinMax<T> {
pub min: T,
pub minindex: usize,
pub max: T,
pub maxindex: usize,
}
Expand description
struct for minimum value, its index, maximum value, its index
Fields§
§min: T
Minimum value
minindex: usize
Subscript (index) of the minimum
max: T
Maximum value
maxindex: usize
Subscript (index) of the maximum
Trait Implementations§
Auto Trait Implementations§
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§
§impl<T> Pointable for T
impl<T> Pointable for T
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
.