Module comparators

Source
Expand description

Comparator functions for sorting mappings in different ways.

Structs§

ByGeneratedTail
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.
ByOriginalLocation
Sort mappings by their original locations, breaking ties by their generated locations.
ByOriginalLocationSameSource
Assuming mappings are in the same original source, sort mappings by their original locations, breaking ties by their generated locations.

Traits§

ComparatorFunction
A function that can compare two Ts.