BurntSushi/same-file

Implement `Hash` for `Handle`

KodrAus opened this issue · 2 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?