zipstack 0.1.0

The compression zip and unzip stack!
Documentation
/// ZipStack: a tiny example utility
///
/// Adds items to a stack and zips them into a Vec
pub struct ZipStack<T> {
    items: Vec<T>,
}

impl<T> ZipStack<T> {
    /// Create a new ZipStack
    pub fn new() -> Self {
        Self { items: Vec::new() }
    }

    /// Push an item
    pub fn push(&mut self, item: T) {
        self.items.push(item);
    }

    /// Consume and return all items
    pub fn into_vec(self) -> Vec<T> {
        self.items
    }
}