container_traits

Crates.iocontainer_traits
lib.rscontainer_traits
version0.1.1
created_at2026-01-21 16:35:28.015544+00
updated_at2026-01-21 16:42:31.154452+00
descriptionTraits for container types
homepage
repositoryhttps://codeberg.org/Loara/container_traits
max_upload_size
id2059657
size40,017
(Loara-crates)

documentation

README

Container traits

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.

Optional features

  • alloc: links the alloc crate and provide implementations for containers like Vec, BTreeMap, ...
  • std: links the std crate and provides implementation for HashMap.
Commit count: 2

cargo fmt