Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think it becomes useful only if whatever struct expects some extra level of behavior from the types. Basically any time a struct or a trait is coupled with another trait or needs a particular marker/lifetime to function I find myself repeating the bounds over and over.

For example in gfx-rs it might be repeating the gfx::Resources or gfx::Factory trait bounds.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: