Re:Abstracting over ownership in Rust with higher-rank type ...
by umanwizard on Sunday September 11, 2022 @10:54AM
(#32800097)
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()
[ Parent
| on HN ]
There are no comments on this comment yet.