#len #hopefully #replacing #unmaintained #idea #aims #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

#3 in #unmaintained

Download history 2/week @ 2024-07-29 8/week @ 2024-08-26 17/week @ 2024-09-23 37/week @ 2024-10-07 81/week @ 2024-10-14 42/week @ 2024-10-21 19/week @ 2024-10-28 15/week @ 2024-11-04

163 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