4 ms·
It’s also never clear where this appears, like a::<b>(c) or a::<b>::c()
by baby 6y ago
It’s also never clear where this appears, like a::<b>(c) or a::<b>::c()
- unrealhoang 6y agoin both case, `<b>` is a parameter of `a`, but in the former, `a` is a function with generic parameter and in the latter, `a` is a type with generic parameter.
- kzrdude 6y agoThe generic paramer is directly after the thing that has the parameter (it could be on the type or the method). With an exception, for enum variants it's after the variant, like None::<i32>