If a struct is impl with two traits that share a common fnc name? How does @rustlang compiler choose which function when it is called?
-
-
Replying to @GuilfordHunter
.
@rustlang What are the best recommended patterns to manage this type of case?1 reply 0 retweets 0 likes -
Replying to @GuilfordHunter
@GuilfordHunter you can use http://doc.rust-lang.org/stable/book/ufcs.html … to disambiguate1 reply 0 retweets 1 like
Replying to @GuilfordHunter
@GuilfordHunter any time :)
7:00 PM - 24 Apr 2016
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.