I\'m trying to extend the Grid struct from the piston-2dgraphics library. There\'s no method for getting the location on the window of a particular cell, so I implemented a
No. Currently, the only way to write new methods for a type that has been defined in another crate is through traits. However, this seems too cumbersome as you have to write the both the trait definition and the implementation.
In my opinion, the way to go is to use free functions instead of methods. This would at least avoid the duplication caused by traits.