Macro stdlib_rs::min_stack[][src]

macro_rules! min_stack {
    ($($e : expr), *) => { ... };
}
Expand description

Create a new min_stack with the elements inside the macro. Works like the vec![] macro.

Examples

let stack = min_stack![1, 2, 3];
let empty: MinStack<i32> = min_stack![];
let mut other = MinStack::new();
other.push(1);
other.push(2);
other.push(3);
assert_eq!(stack, other);
assert_eq!(empty, MinStack::new());