BurntSushi / same-file

Cross platform Rust library for checking whether two file paths are the same file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement `Hash` for `Handle`

KodrAus opened this issue · comments

Relevant API Guideline

Implement the Hash trait for Handle. See those docs for more details about how to implement Hash.

What is the semantic meaning of an ordering between two handles? I'm not sure such a comparison makes sense?

Hashing seems reasonable to add.

I wasn't quite sure about Ord either, but it was mentioned in the evaluation as a good idea. I can't think of a use-case so maybe we just remove that one?