minivec 0.4.0

A version of Vec that's only the size of a single pointer
Documentation
use crate::MiniVec;

impl<T: Clone> Clone for MiniVec<T> {
  fn clone(&self) -> Self {
    if self.is_default() {
      return MiniVec::new();
    }

    let mut copy = MiniVec::<T>::new();

    copy.reserve(self.len());
    for i in 0..self.len() {
      copy.push(self[i].clone());
    }

    copy
  }
}