3 ms·
Small note about Rust; you're not 100% right. For example, method syntax will do auto ref/deref on the reciever, for most methods, it'd be f(&x), not f(x), thou
by steveklabnik 9y ago
Small note about Rust; you're not 100% right. For example, method syntax will do auto ref/deref on the reciever, for most methods, it'd be f(&x), not f(x), though if f took self by value, it would be!
It is true that you can invoke it either way if it's a method, but you cannot if it's a function, as well.