Trait wallswitch::IntegerIterExt
source · pub trait IntegerIterExt {
// Required methods
fn integer_min(&mut self) -> u32;
fn integer_max(&mut self) -> u32;
}Expand description
Find the maximum value of Vec<u32>.
Example:
use wallswitch::IntegerIterExt;
let vector: Vec<u32> = vec![4, 3, 2, 8];
let min = vector
.iter()
.cloned()
.integer_min();
assert_eq!(min, 2);