2 releases

0.1.1 Jan 4, 2023
0.1.0 Jan 4, 2023

#273 in No standard library

Download history 86/week @ 2023-12-11 99/week @ 2023-12-18 72/week @ 2023-12-25 38/week @ 2024-01-01 39/week @ 2024-01-08 479/week @ 2024-01-15 177/week @ 2024-01-22 95/week @ 2024-01-29 89/week @ 2024-02-05 112/week @ 2024-02-12 1758/week @ 2024-02-19 226/week @ 2024-02-26 97/week @ 2024-03-04 259/week @ 2024-03-11 88/week @ 2024-03-18 74/week @ 2024-03-25

534 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
~34K SLoC