Open jtwilliamss opened 3 years ago
I understand Generic Functions enable
What I do not understand is how.
Specifically: how does the compiler better know the "real type" (of the NoiseMaker trait) with (1.) over (2.)?
NoiseMaker
[Is this "how does Rust work?" question outside the scope of an issue submission for this project?]
ps. tour_of_rust is my favorite "learning as a Rust newbie" I've found thus far. Thanks so much for putting this together.
Further discussion here:
https://www.reddit.com/r/rust/comments/lv3eb2/hey_rustaceans_got_an_easy_question_ask_here_92021/gpdp9i2/?utm_source=reddit&utm_medium=web2x&context=3
My potentially-overly-summarized conclusion (see reddit.com discussion above for more details): dyn specifically disables static dispatch.
dyn
In any case, closing this issue.
I understand Generic Functions enable
What I do not understand is how.
Specifically: how does the compiler better know the "real type" (of the
NoiseMaker
trait) with (1.) over (2.)?[Is this "how does Rust work?" question outside the scope of an issue submission for this project?]
ps. tour_of_rust is my favorite "learning as a Rust newbie" I've found thus far. Thanks so much for putting this together.