Skip to main content

list_partial_cmp

Function list_partial_cmp 

Source
pub fn list_partial_cmp<L: List + ?Sized>(
    a: &L,
    b: &dyn PartialReflect,
) -> Option<Ordering>
Expand description

Lexicographically compares two List values and returns their ordering.

Returns None if the comparison couldn’t be performed (e.g., kinds mismatch or an element comparison returns None).