Expand description
Comparator functions for sorting mappings in different ways.
Structs§
- ByGenerated
Tail - Sort mappings by their generated location, but don’t compare generated lines. This is useful for when we know that all mappings being sorted have the same generated line number.
- ByOriginal
Location - Sort mappings by their original locations, breaking ties by their generated locations.
- ByOriginal
Location Same Source - Assuming mappings are in the same original source, sort mappings by their original locations, breaking ties by their generated locations.
Traits§
- Comparator
Function - A function that can compare two
T
s.