| Crates.io | wec |
| lib.rs | wec |
| version | 1.0.2 |
| created_at | 2023-05-13 17:11:10.509248+00 |
| updated_at | 2023-05-13 17:47:39.100691+00 |
| description | Useful vec!-like macros |
| homepage | |
| repository | https://github.com/MariaSolOs/wec |
| max_upload_size | |
| id | 863827 |
| size | 5,491 |
A collection of useful Rust macros for creating vec!s.
bec!Tired of writing vec![ Box::new(1), ... Box::new(100) ]? Me too. So here's macro that does it for you.
let v = bec![1, 2, 3];
assert_eq!(v, vec![Box::new(1), Box::new(2), Box::new(3)]);
vinto!Calls .into() on each element.
let v: Vec<String> = vinto!["foo", String::from("bar")];
assert_eq!(v, vec![String::from("foo"), String::from("bar")]);