I need to write up a blog post for this, but instead I’m going to do a Post Thread about it until I get the motivation/time to one-shot a longer write up.

This is: “Fun with using Traits to bundle things in Rust”. I have two main uses:

  1. “Grouping types + consts”
  2. “Bundling generics”

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help