|
|
|
|
|
by tatterdemalion
3400 days ago
|
|
In the standard library today, there's no bounds on `K` on the definition of HashMap, only on the impl block containing its methods. This sort of makes HashMap a bad example for this code block; you're right that if the bounds were on the definition instead of the impl, the argument itself would be invalid. |
|
For example in gfx-rs it might be repeating the gfx::Resources or gfx::Factory trait bounds.