Macro stack

Source
macro_rules! stack {
    ([$($expr:expr),* $(,)?] in $ident:ident) => { ... };
}
Expand description

Convenience macro for creating a Stack in a single stack frame.

let mut storage;
let abcd = stack![["a", "b", "c", "d"] in storage];
assert_eq!(abcd, &["a", "b", "c", "d"])