iced icon indicating copy to clipboard operation
iced copied to clipboard

Implement `Hash` for register types

Open Kixiron opened this issue 2 years ago • 1 comments

Currently the various register types (Register, AsmRegister8, AsmRegister64, ...) don't implement Hash, which means they can't be stored within a HashMap or HashSet which limits some things you can do with them. Implementing Ord would also be nice, as it'd allow storing registers within BTreeMaps/BTreeSets

Kixiron avatar Nov 24 '21 19:11 Kixiron

PR welcome!

The registers are generated by this file: https://github.com/icedland/iced/blob/master/src/csharp/Intel/Generator/Assembler/Rust/RustAssemblerSyntaxGenerator.cs

wtfsck avatar Nov 24 '21 20:11 wtfsck