Awful Rust snippets for fun and profit
前往频道在 Telegram
220
订阅者
无数据24 小时
无数据7 天
无数据30 天
吸引订阅者
十月 '2610月 '26
十月 '26
+53
在0个频道中
九月 '260
在0个频道中
Get PRO
八月 '260
在0个频道中
Get PRO
七月 '260
在0个频道中
Get PRO
六月 '260
在0个频道中
Get PRO
五月 '260
在0个频道中
Get PRO
四月 '260
在0个频道中
Get PRO
三月 '260
在0个频道中
Get PRO
二月 '260
在0个频道中
Get PRO
一月 '260
在0个频道中
Get PRO
十二月 '250
在0个频道中
Get PRO
十一月 '250
在0个频道中
Get PRO
十月 '250
在0个频道中
Get PRO
九月 '250
在0个频道中
Get PRO
八月 '250
在0个频道中
Get PRO
七月 '250
在0个频道中
Get PRO
六月 '250
在0个频道中
Get PRO
五月 '250
在0个频道中
Get PRO
四月 '250
在0个频道中
Get PRO
三月 '250
在0个频道中
Get PRO
二月 '250
在1个频道中
Get PRO
一月 '250
在0个频道中
Get PRO
十二月 '24
+14
在1个频道中
Get PRO
十一月 '24
+9
在1个频道中
Get PRO
十月 '24
+12
在0个频道中
Get PRO
九月 '24
+140
在1个频道中
Get PRO
八月 '240
在0个频道中
Get PRO
七月 '240
在2个频道中
Get PRO
六月 '240
在0个频道中
Get PRO
五月 '240
在0个频道中
Get PRO
四月 '240
在0个频道中
Get PRO
三月 '240
在0个频道中
Get PRO
二月 '240
在1个频道中
Get PRO
一月 '240
在0个频道中
Get PRO
十二月 '230
在0个频道中
Get PRO
十一月 '23
+220
在0个频道中
频道帖子
implicit use of a trait we’re currently implementing leaks through a module
bonus points to anyone who finds any related documentation (please tell me in the comments if you do!)
playground
thanks to @kanashimia for showing me this
(also yay 200 subscribers!)
| 2 | oh, and also I published this one trick as a crate: https://github.com/GoldsteinE/dyngo | 0 |
| 3 | it’s possible to work around the “bounds with different associated types are not considered disjoint” limitation by using a helper trait
thanks to the Marin Veršić, author of the disjoint_impls crate for publishing this trick!
playground
rust-lang/rust issue | 0 |
| 4 | useful in macro expansions / codegen
playground
similar trick ICEd on 1.59: Rust issue | 0 |
| 5 | I wrote a longish post about this one since snippet alone doesn’t explain it well
Post: deref specialization in const contexts | 0 |
