Re:Announcing Rust 1.7
by steveklabnik on Thursday March 03, 2016 @06:02PM
(#11220750)
We have a module system, but that doesn't help. You can still define methods on arbitrary types, subject to the coherence rules.
You can still write out a disambiguated form to distinguish the two, but it's not the default way. That's one of the reasons why adding a defaulted method to a trait is a minor change. See https://github.com/rust-lang/rfcs/blob/master/text/1105-api-... for more.
You can still write out a disambiguated form to distinguish the two, but it's not the default way. That's one of the reasons why adding a defaulted method to a trait is a minor change. See https://github.com/rust-lang/rfcs/blob/master/text/1105-api-... for more.