any-container 0.1.1

Type-erased container types for storing heterogeneous values behind a common interface.
Documentation
  • Coverage
  • 100%
    23 out of 23 items documented4 out of 21 items with examples
  • Size
  • Source code size: 36.47 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.72 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • tooboredtocode/metronomos
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tooboredtocode

Any Container

A Rust crate providing type-erased container types for storing heterogeneous values behind a common interface.

Features

  • AnyMap - A map from types to a single value of each type
  • AnyMultiMap - A map from types to multiple values of each type
  • AnyVec - A type-erased vector storing values of a single type
  • AnyCloneBox - A type-erased box that allows cloning the boxed value

Usage

[dependencies]
any-container = "0.1"

License

ISC Licensed. See LICENSE for details.