#any #box #any-box

any-box

The crate contains an implementation of a container type AnyBox which works similar to C++’s (std::any)

1 unstable release

0.0.1 Mar 7, 2022

#57 in #any

Apache-2.0

16KB
300 lines

The library contains an implementation of a container type AnyBox which works similar to C++'s (std::any)


AnyBox works similar to C++'s (std::any):

  • small types (up to a pointer size) are stored without heap allocation.
  • larger types are stored with a Box

No runtime deps