/// Returns maximum of given unit values.
Returns maximum of given unit values.
Returns maximum of given unit values .
pub fn max_value<T, F>(&self, f: F) -> Option<T>
	where
		T: PartialOrd,
		F: Fn(&Unit) -> T,
	{
		self.iter().map(f).max_by(cmp)
	}
pub fn max_value < T , F > ( & self , f : F ) -> Option < T > where T : PartialOrd , F : Fn ( & Unit ) -> T , { self . iter ( ) . map ( f ) . max_by ( cmp ) }
Returns maximum of given unit values.
Returns maximum of given unit values .
&self
f
F