Stack trait
Stack trait with entry API for the LIFO element.
Example
use ;
// types are written explicitly for clarity
As demonstrated above, LIFOEntry<'a,C> can be coverted to &'a C, &'a mut C or even C at our discretion.
Notes
At the point of writing, this trait is implemented only for Vec<T>. However, having this trait implemented for other types, such as ArrayVec<T> is welcome.