2 releases
0.1.1 | Jan 4, 2023 |
---|---|
0.1.0 | Jan 4, 2023 |
#284 in No standard library
279 downloads per month
Used in pcap
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?
- These traits provide a common base so crates can all use the same definitions, like with
num-traits
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