pub(crate) fn min_max<T>(a: T, b: T) -> (T, T)
where
    T: std::cmp::PartialOrd,
{
    if a > b {
        (b, a)
    } else {
        (a, b)
    }
}
///
/// Retrieve the min and the max between two values
///
Retrieve the min and the max between two values
Retrieve the min and the max between two values
pub(crate) fn min_max<T>(a: T, b: T) -> (T, T)
where
    T: std::cmp::PartialOrd,
{
    if a > b {
        (b, a)
    } else {
        (a, b)
    }
}
pub ( crate ) fn min_max < T > ( a : T , b : T ) -> ( T , T ) where T : std :: cmp :: PartialOrd , { if a > b { ( b , a ) } else { ( a , b ) } }
Retrieve the min and the max between two values
Retrieve the min and the max between two values
a
T
b
T