Function decorum::cmp_float_slice

source ·
pub fn cmp_float_slice<T>(lhs: &[T], rhs: &[T]) -> Orderingwhere
    T: Float + Primitive,
Expand description

Compares primitive floating-point slices.

See cmp_float for details of scalar comparisons. The ordering of slices is determined by the first instance of non-equal corresponding elements. If no such instance exists, then the length of the slices are compared; longer slices are considered greater than shorter slices. Naturally, this means that slices of the same length with equivalent elements are considered equal.