[][src]Crate cmp_wrap

cmp_wrap

Have you ever needed to compare the same data by different fields, depending on context? If so, that crate is for you.

Structs

CmpByKey

The main structure of this crate. Lets you define a "key function" over any structure, which will change the way the value is being compared. Very useful when you need to enter your data to different data structures (such as max heaps, sorted trees and so on), with different comparision criteria.