Skip to main content

depth_first_cmp

Function depth_first_cmp 

Source
pub fn depth_first_cmp(a: &Nibbles, b: &Nibbles) -> Ordering
Expand description

Compares two Nibbles in depth-first order.

In depth-first ordering:

  • Descendants come before their ancestors (children before parents)
  • Siblings are ordered lexicographically