You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type<T> SomeType = T:Copy + Clone + Debug + OtherTrait// you can do this
impl<T> SomeTrait for SomeStruct<T>
where T:SomeType{
...}// also
impl<T:SomeType> SomeTrait for SomeStruct<T> {
...}
I believe this will greatly enhance the readability of ultra-long generic constraints. This is just a little inspiration that I had while reading the source code of some crate. Any other solutions are welcome to comment here :)
The text was updated successfully, but these errors were encountered:
TL;DR, I want this:
I believe this will greatly enhance the readability of ultra-long generic constraints. This is just a little inspiration that I had while reading the source code of some crate. Any other solutions are welcome to comment here :)
The text was updated successfully, but these errors were encountered: