{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreifjshoj7ap7tyta7s5amw4xj6l4lnkegvwtcx2cwmepmk54245vge",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mjt3k5t5bsy2"
},
"path": "/t/add-something-like-num-traits-to-std-or-move-it-into-std-entirely/24181#post_5",
"publishedAt": "2026-04-19T01:55:19.000Z",
"site": "https://internals.rust-lang.org",
"tags": [
"https://github.com/rust-lang/rfcs/pull/3686#discussion_r1755464148"
],
"textContent": "jhpratt:\n\n> just to make generic implementations easier\n\nFor that, I wonder how far you could get with something like https://github.com/rust-lang/rfcs/pull/3686#discussion_r1755464148 instead.\n\nBeing able to have both\n\n\n impl<N> TheTrait for u<N> { … }\n impl<N> TheTrait for i<N> { … }\n\n\nis way better than doing that via a trait, because it's no longer a top-level blanket.\n\nAs soon as you have\n\n\n impl<T: std::sealed::Whatever> TheTrait for T { … }\n\n\nnow it's more annoying to implement it for other things too.",
"title": "Add something like `num_traits` to STD, or move it into std entirely"
}