Crates.io | trait_len |
lib.rs | trait_len |
version | 0.2.3 |
source | src |
created_at | 2023-07-26 07:21:47.400048 |
updated_at | 2023-07-26 07:21:47.400048 |
description | A trait for implementing len(), hopefully replacing the unmaintained len_trait crate. |
homepage | https://github.com/xxaier/trait_len |
repository | |
max_upload_size | |
id | 926256 |
size | 5,100 |
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!