Hacker News new | ask | show | jobs
by umanwizard 1382 days ago
It is possible. If you implement a trait with a function “foo” on some stdlib type, then “foo” is added to the type’s inherent impl, the inherent function will now be called instead of the one in your trait when doing x.foo()