vec-unpack

Crates.iovec-unpack
lib.rsvec-unpack
version0.1.0
sourcesrc
created_at2022-12-17 15:07:50.224787
updated_at2022-12-17 15:07:50.224787
descriptionCreates a Vec containing the arguments. vecu! unpacks iterable variables marked with @.
homepage
repositoryhttps://github.com/sinotca529/vec-unpack
max_upload_size
id739922
size4,578
Takumi Watanabe (sinotca529)

documentation

README

vec-unpack

Creates 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]);
Commit count: 1

cargo fmt