Crates.io | anygma |
lib.rs | anygma |
version | 0.1.0 |
source | src |
created_at | 2024-02-04 13:19:27.548828 |
updated_at | 2024-02-04 13:19:27.548828 |
description | anygma makes it easy to define arrays containing different types. |
homepage | |
repository | https://github.com/kumavale/anygma |
max_upload_size | |
id | 1126364 |
size | 19,919 |
anygma
makes it easy to define arrays containing different types.
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"));
This project welcomes your PR and issues. For example, fixing bugs, adding features, refactoring, etc.