3 ms·
You can do that in Rust by using a "where" clause. Put in a letter for each type, then define them on different lines.
by ModernMech 4y ago
You can do that in Rust by using a "where" clause. Put in a letter for each type, then define them on different lines.
- estebank 4y agoAnything with trait bounds beyond `fn foo<T: Trait>(t: T)` should put them in the `where` clause (and in this case, it arguably should be `fn foo(t: impl Trait)`).