#len #replacing #hopefully #unmaintained #idea #old #len-trait

trait_len

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

1 unstable release

0.2.3 Jul 26, 2023

#7 in #unmaintained

MIT/Apache

6KB
138 lines

trait_len

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
~16K SLoC