what's that rule called in rust where you're not allowed to implement a trait for a type unless either the trait or the type is in the current crate
-
Show this thread
-
and why doesn't `impl From<MyType> for String` violate this -- is it because you're specialising From<T> to the concrete From<MyType>
3 replies 0 retweets 1 likeShow this thread -
Replying to @mountain_ghosts
Because of an oversight in the original rules. There's an accepted and implemented RFC which fixes it. https://github.com/rust-lang/rfcs/pull/2451 …
1 reply 0 retweets 1 like
Replying to @sgrif @mountain_ghosts
Aaand of course Steve already linked it. (never miss an opportunity to plug my RFC though XD)
5:42 PM - 21 Apr 2019
0 replies
0 retweets
2 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.