Function std::cmp::partial_maxExperimental [-]  [+] [src]

pub fn partial_max<T: PartialOrd<T>>(v1: T, v2: T) -> Option<T>

Compare and return the maximum of two values if there is one.

Returns the first argument if the comparison determines them to be equal.