# Lifo Simple last-in first-out api wrapper for std `VecDeque`. ## Code ```rust use std::collections::VecDeque; pub type Deque = VecDeque; /// ### Defaults the behavior of `push` and `pop`. pub trait Lifo { fn push(&mut self, value: T); fn pop(&mut self) -> Option; } impl Lifo for Deque { /// ### Push back #[inline(always)] fn push(&mut self, value: T) { self.push_back(value); } /// ### Pop front #[inline(always)] fn pop(&mut self) -> Option { self.pop_front() } } ```