| Crates.io | container_traits |
| lib.rs | container_traits |
| version | 0.1.1 |
| created_at | 2026-01-21 16:35:28.015544+00 |
| updated_at | 2026-01-21 16:42:31.154452+00 |
| description | Traits for container types |
| homepage | |
| repository | https://codeberg.org/Loara/container_traits |
| max_upload_size | |
| id | 2059657 |
| size | 40,017 |
Traits for container objects.
Standard containers (Vec, HashMap, HashSet, BTreeMap, ...) implements several
strategies that make unfeasable to have a generic trait covering all these use cases. This
crate then chooses to split it into several different subtraits that allows you to implement
only those that are useful for you.
alloc: links the alloc crate and provide implementations for containers like Vec, BTreeMap, ...std: links the std crate and provides implementation for HashMap.