Closed stevefan1999-personal closed 2 months ago
Huh, interesting, I never through about the orderings of Unix path and Windows path...but if you don't have PartialOrd then you can't use TypedPathBuf as a key for BTreeMap
We're in pre 1.0 release, so I'm fine bringing this in. Can always change the behavior later if needed. Thanks for the contribution!
We're in pre 1.0 release, so I'm fine bringing this in. Can always change the behavior later if needed. Thanks for the contribution!
Thanks! Now I can use this with BTreeMap in no_std
context
@stevefan1999-personal you'll find this included in the 0.9.1 release :smile:
@stevefan1999-personal is the implementation of
PartialOrd
andOrd
what you would expect? Namely that variants are compared for order first, and then only if they are the same are the fields compared. Would look something like this, I believe.