wl-proxy 0.1.2

Wayland connection proxy
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::utils::stack::Stack;

#[test]
fn stack() {
    let stack = Stack::default();
    stack.push(0);
    stack.push(1);
    stack.push(2);
    assert_eq!(stack.pop(), Some(2));
    assert_eq!(stack.take(), vec![0, 1]);
}