#traits #replace #type #unmaintained #replacement #types #pr #implement

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
Download history 6/week @ 2022-11-30 20/week @ 2022-12-07 17/week @ 2022-12-14 19/week @ 2022-12-21 9/week @ 2022-12-28 10/week @ 2023-01-04 5/week @ 2023-01-11 8/week @ 2023-01-18 14/week @ 2023-01-25 19/week @ 2023-02-01 17/week @ 2023-02-08 25/week @ 2023-02-15 19/week @ 2023-02-22 4/week @ 2023-03-01 5/week @ 2023-03-08 16/week @ 2023-03-15

51 downloads per month
Used in 2 crates

MIT/Apache

4KB
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–540KB
~11K SLoC