so am I right in thinking that every rust function with a generic return, e.g. collect(), sum(), into(), is implemented by constraining the return to implement some trait and then just calling that trait?
-
Show this thread
-
Replying to @mountain_ghosts
p much, parametric polymorphism dictates that if you return an unconstrained T, you have no way to conjure one up from thin air
2 replies 0 retweets 4 likes -
Replying to @__vlqc @mountain_ghosts
`std::mem` would like a word with you
2 replies 0 retweets 5 likes -
std::mem should get back in its Box
2 replies 0 retweets 5 likes -
Please mem::forget() it
1 reply 0 retweets 2 likes -
Replying to @mgattozzi @sgrif and
probably should just mem::drop the subject
1 reply 0 retweets 2 likes -
Replying to @sleffy_ @mgattozzi and
We should mem::transmute this conversation into something more productive
1 reply 0 retweets 1 like -
Replying to @sgrif @mgattozzi and
whoa don't mem::swap this thread out from under me now
1 reply 0 retweets 1 like -
can we at least mem::replace it with educational content
2 replies 0 retweets 1 like
I'm not really sure what the mem::discriminant is between this and educational content
12:52 PM - 4 Apr 2019
0 replies
0 retweets
3 likes
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.