1 unstable release

0.1.0 Jan 4, 2023

#450 in #proc-macro

Download history 88/week @ 2023-08-14 64/week @ 2023-08-21 52/week @ 2023-08-28 61/week @ 2023-09-04 60/week @ 2023-09-11 62/week @ 2023-09-18 66/week @ 2023-09-25 64/week @ 2023-10-02 67/week @ 2023-10-09 68/week @ 2023-10-16 68/week @ 2023-10-23 156/week @ 2023-10-30 185/week @ 2023-11-06 155/week @ 2023-11-13 136/week @ 2023-11-20 131/week @ 2023-11-27

621 downloads per month
Used in 2 crates (via gat-std)

MIT/Apache

7KB
142 lines

GAT std

A variant of Rust std traits that use GATs, as well as a macro to allow rewriting code to use these traits instead of the std equivalents.

Why?

  1. These traits provide a common base so crates can all use the same definitions, like with num-traits
  2. std likely won't be able to change to use these traits for quite a while, if ever. This allows users to take advantage of GATs in their code smoothly despite that.

Dependencies

~1.5MB
~31K SLoC