On 3/13/14 11:44 AM, Jan Klesnil wrote:
I am following Rust only for few month. Was the alternate syntax
Trait::method(object, other parameters) discussed?

It will be sometimes useful to write Clone::clone(x) instead of
x.clone() or (&x as &Clone).clone().

Yup! That's what we call Uniform Function Call Syntax or UFCS. :)

Patrick

_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to