| Crates.io | vec-unpack |
| lib.rs | vec-unpack |
| version | 0.1.0 |
| created_at | 2022-12-17 15:07:50.224787+00 |
| updated_at | 2022-12-17 15:07:50.224787+00 |
| description | Creates a Vec containing the arguments. vecu! unpacks iterable variables marked with @. |
| homepage | |
| repository | https://github.com/sinotca529/vec-unpack |
| max_upload_size | |
| id | 739922 |
| size | 4,578 |
vec-unpackCreates a Vec containing the arguments.
vecu! unpacks iterable variables marked with @.
use vec_unpack::*;
let a = [2, 3];
let b = vecu![0, 1, @a, 4, 5];
assert_eq!(b, vec![0, 1, 2, 3, 4, 5]);