We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
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.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: