On Saturday, October 19, 2013, Ziad Hatahet wrote: > On Sat, Oct 19, 2013 at 4:35 PM, David Piepgrass > <[email protected]<javascript:_e({}, 'cvml', '[email protected]');> > > wrote: > >> In C# it's nice that I can find all the so-called extension methods by >>> searching for "(this ". >>> >>> > > Aren't `impl`s in Rust somewhat similar to extension methods in C#? >
Loosely, if you ignore that each impl overloads an abstract interface (trait) over the Self type, and that you can constrain a type parameter based on whether there's an overload of a certain abstract interface for it.
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
