2 releases

0.1.1 Jan 4, 2023
0.1.0 Jan 4, 2023

#284 in No standard library

Download history 93/week @ 2024-04-12 401/week @ 2024-04-19 72/week @ 2024-04-26 170/week @ 2024-05-03 114/week @ 2024-05-10 122/week @ 2024-05-17 117/week @ 2024-05-24 132/week @ 2024-05-31 124/week @ 2024-06-07 132/week @ 2024-06-14 105/week @ 2024-06-21 87/week @ 2024-06-28 61/week @ 2024-07-05 79/week @ 2024-07-12 78/week @ 2024-07-19 50/week @ 2024-07-26

279 downloads per month
Used in pcap

MIT/Apache

25KB
692 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.

lib.rs:

GAT implementations of std traits

Traits are in the same respective paths as their std variants. The gatify macro changes operators to desugar to the traits in this crate instead of their std equivalents.

Dependencies

~1.5MB
~35K SLoC