Skip to main content

opt_min

Function opt_min 

Source
fn opt_min<T: PartialOrd>(a: Option<T>, b: Option<T>) -> Option<T>
Expand description

Returns the minimum of two Option<T> values, preferring Some over None.