#len #replacing #unmaintained #hopefully #idea #place #unified

lentrait

A trait for implementing len(), hopefully replacing the unmaintained len_trait crate

5 releases

0.2.3 Dec 27, 2021
0.2.2 Jul 4, 2021
0.2.1 Jul 4, 2021
0.2.0 Jun 26, 2021
0.1.0 Jun 16, 2021

#7 in #hopefully

Download history 46/week @ 2024-11-13 24/week @ 2024-11-20 113/week @ 2024-11-27 76/week @ 2024-12-04 31/week @ 2024-12-11 27/week @ 2024-12-18 12/week @ 2024-12-25 1/week @ 2025-01-22 41/week @ 2025-01-29 4/week @ 2025-02-05 13/week @ 2025-02-12 24/week @ 2025-02-19 14/week @ 2025-02-26

79 downloads per month
Used in 2 crates

MIT/Apache

5KB
111 lines

lentrait

Current Crates.io Version

This is a Len trait for Rust, providing a len() function.

This aims to be a unified place to implement Len, so please make a PR if you want to implement it on any new types. The old len_trait does not seem to be maintained, so I made this one as a replacement.

Again, WIP so please feel free to contribue. Any code or ideas are welcome!

Dependencies

~0–1MB
~18K SLoC