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

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

39 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