anygma 0.1.0

anygma makes it easy to define arrays containing different types.
Documentation
  • Coverage
  • 100%
    5 out of 5 items documented1 out of 1 items with examples
  • Size
  • Source code size: 19.59 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.2 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • kumavale/anygma
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kumavale

anygma 🦝

Actions Status Crates.io Documentation

anygma makes it easy to define arrays containing different types.

Examples

use anygma::ary_anyref;

let a = ary_anyref![0, 'a', "str"];
assert_eq!(a[0].downcast_ref::<i32>(), Some(&0));
assert_eq!(a[1].downcast_ref::<char>(), Some(&'a'));
assert_eq!(a[2].downcast_ref::<&str>(), Some(&"str"));

Contributing

This project welcomes your PR and issues. For example, fixing bugs, adding features, refactoring, etc.