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

When you specialize an instance in Rust, by definition it already has a valid instance that covers that type. So implementing a single method is fine - the other ones are provided by the instance you are specializing.

Newtypes also exist in Rust but this is an alternative that is not the same as the overlapping instances extension.



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

Search: