Skip to main content

min

Function min 

Source
fn min<G>(a: G::EdgeWeight, b: G::EdgeWeight) -> G::EdgeWeight
where G: Data, G::EdgeWeight: PartialOrd,
Expand description

Returns the minimum value between given a and b. Will panic if it tries to compare two elements that aren’t comparable (i.e., given two elements a and b, neither a >= b nor a < b).