2 releases

0.1.1 Jan 4, 2023
0.1.0 Jan 4, 2023

#289 in No standard library

Download history 67/week @ 2024-07-22 66/week @ 2024-07-29 83/week @ 2024-08-05 98/week @ 2024-08-12 84/week @ 2024-08-19 171/week @ 2024-08-26 79/week @ 2024-09-02 76/week @ 2024-09-09 74/week @ 2024-09-16 106/week @ 2024-09-23 95/week @ 2024-09-30 88/week @ 2024-10-07 89/week @ 2024-10-14 92/week @ 2024-10-21 85/week @ 2024-10-28 81/week @ 2024-11-04

357 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
~37K SLoC