/// Returns unit with maximum given predicate.
Returns unit with maximum given predicate.
Returns unit with maximum given predicate .
pub fn max<T, F>(&self, f: F) -> Option<&Unit>
	where
		T: PartialOrd,
		F: Fn(&Unit) -> T,
	{
		self.iter().max_by(cmp_by(f))
	}
pub fn max < T , F > ( & self , f : F ) -> Option < & Unit > where T : PartialOrd , F : Fn ( & Unit ) -> T , { self . iter ( ) . max_by ( cmp_by ( f ) ) }
Returns unit with maximum given predicate.
Returns unit with maximum given predicate .
&self
f
F