this post was submitted on 07 Aug 2024
1 points (100.0% liked)
Rust Programming
211 readers
4 users here now
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
@rust @learningrustandlemmy
I might have missed some subtle syntactical difference here, I guess
aas in
Vec<...>
is a type definition, andVec::<...>
is referring to the struct itself, but with a type parameter given.context - https://www.reddit.com/r/learnrust/comments/exmqyc/what_are_the_rules_for_turbofish/