Macro encrust::encrust_vec

source ·
encrust_vec!() { /* proc-macro */ }
Available on crate feature macros only.
Expand description

Encrust a vec of literals. This works similarly to encrust! and supports the same data types, but puts the data in a vec.

Example

let mut a_vec = encrust_vec![1i32, 2i32, 3i32];
assert_eq!(vec![1i32,2i32,3i32].as_slice(), a_vec.decrust().as_slice());