anygma

Crates.ioanygma
lib.rsanygma
version0.1.0
sourcesrc
created_at2024-02-04 13:19:27.548828
updated_at2024-02-04 13:19:27.548828
descriptionanygma makes it easy to define arrays containing different types.
homepage
repositoryhttps://github.com/kumavale/anygma
max_upload_size
id1126364
size19,919
Naoki Kumagai (kumavale)

documentation

README

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.

Commit count: 0

cargo fmt