it compiles! 

my Commit and Tree structs implement TryFrom<BufReader<T: Read>> which feels more honest than implementing From, and means I'm not swallowing errors so deep in the stack
-
Show this thread
-
(it's annoying I have to specify T: Read everywhere, seems like BufReader<T> should only be defined for T: Read)
1 reply 0 retweets 0 likesShow this thread -
guess this is a difference between putting bounds on a struct vs putting bounds on its impls
2 replies 0 retweets 2 likesShow this thread -
ah, BufReader has impls with no bounds on R
1 reply 0 retweets 1 likeShow this thread
Replying to @mountain_ghosts
Even if they were on the struct you'd still have to state the bounds everywhere. Otherwise loosening bounds would be a breaking change
5:20 PM - 9 Jun 2019
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.