On Sat, Oct 19, 2013 at 4:35 PM, David Piepgrass <qwertie...@gmail.com>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#? For instance: trait Doubler { fn double(&self) -> Self; } impl Doubler for int { fn double(&self) -> int { *self * 2 } } Then you can call 5.double(). -- Ziad
_______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev