Turbofish!
We'll cover the following...
We'll cover the following...
Let’s go back to fruit. We can write static methods just as easily as normal methods. Behold, my new fruit!
Pop quiz: what’s the type of the fruit variable in main? Given that we have an impl block for a Fruit<i32>, it seems a fair guess that the type is Fruit<i32>. And you’d be right. But how did Rust know you wanted that? Why not give you a Fruit<String>? That’s because there was only one static method on Fruit available, called ...